Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
fd002723
Unverified
Commit
fd002723
authored
May 11, 2023
by
DerekJarvis
Committed by
GitHub
May 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(auth): allow custom GitLab endpoints for self-managed instances (#6399)
* Allow custom GitLab endpoints for self-hosting --------- Co-authored-by:
Nicolas Giard
<
github@ngpixel.com
>
parent
5b80b5e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
authentication.js
server/modules/authentication/gitlab/authentication.js
+2
-0
definition.yml
server/modules/authentication/gitlab/definition.yml
+10
-0
No files found.
server/modules/authentication/gitlab/authentication.js
View file @
fd002723
...
@@ -15,6 +15,8 @@ module.exports = {
...
@@ -15,6 +15,8 @@ module.exports = {
clientSecret
:
conf
.
clientSecret
,
clientSecret
:
conf
.
clientSecret
,
callbackURL
:
conf
.
callbackURL
,
callbackURL
:
conf
.
callbackURL
,
baseURL
:
conf
.
baseUrl
,
baseURL
:
conf
.
baseUrl
,
authorizationURL
:
conf
.
authorizationURL
||
(
conf
.
baseUrl
+
'/oauth/authorize'
),
tokenURL
:
conf
.
tokenURL
||
(
conf
.
baseUrl
+
'/oauth/token'
),
scope
:
[
'read_user'
],
scope
:
[
'read_user'
],
passReqToCallback
:
true
passReqToCallback
:
true
},
async
(
req
,
accessToken
,
refreshToken
,
profile
,
cb
)
=>
{
},
async
(
req
,
accessToken
,
refreshToken
,
profile
,
cb
)
=>
{
...
...
server/modules/authentication/gitlab/definition.yml
View file @
fd002723
...
@@ -24,3 +24,13 @@ props:
...
@@ -24,3 +24,13 @@ props:
hint
:
For self-managed GitLab instances, define the base URL (e.g. https://gitlab.example.com). Leave default for GitLab.com SaaS (https://gitlab.com).
hint
:
For self-managed GitLab instances, define the base URL (e.g. https://gitlab.example.com). Leave default for GitLab.com SaaS (https://gitlab.com).
default
:
https://gitlab.com
default
:
https://gitlab.com
order
:
3
order
:
3
authorizationURL
:
type
:
String
title
:
Authorization URL
hint
:
For self-managed GitLab instances, define an alternate authorization URL (e.g. http://example.com/oauth/authorize). Leave empty otherwise.
order
:
4
tokenURL
:
type
:
String
title
:
Token URL
hint
:
For self-managed GitLab instances, define an alternate token URL (e.g. http://example.com/oauth/token). Leave empty otherwise.
order
:
5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment