Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4645f1f9
Commit
4645f1f9
authored
Feb 04, 2022
by
Steve 0x2a
Committed by
Evan Read
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation on
how to use oidc to connect to casdoor.
parent
eb37dcb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
doc/administration/auth/oidc.md
doc/administration/auth/oidc.md
+59
-0
No files found.
doc/administration/auth/oidc.md
View file @
4645f1f9
...
...
@@ -461,6 +461,65 @@ To use symmetric key encryption:
If after reconfiguring, you see the error
`JSON::JWS::VerificationFailed`
error message, this means
the incorrect secret was specified.
#### Casdoor
GitLab works with OpenID providers that use HTTPS. To connect to GitLab using OpenID with Casdoor, use HTTPS instead of HTTP.
For your app, complete the following steps on Casdoor:
1.
Get a client ID and a client secret.
1.
Add your GitLab redirect URL. For example, if your GitLab domain is
`gitlab.example.com`
, ensure the Casdoor app has the following
`Redirect URI`
:
`https://gitlab.example.com/users/auth/openid_connect/callback`
.
See the
[
Casdoor documentation
](
https://casdoor.org/docs/integration/gitlab
)
for more details.
Example Omnibus GitLab configuration (file path:
`/etc/gitlab/gitlab.rb`
):
```
ruby
gitlab_rails
[
'omniauth_providers'
]
=
[
{
name:
"openid_connect"
,
label:
"Casdoor"
,
# optional label for login button, defaults to "Openid Connect"
args:
{
name:
"openid_connect"
,
scope:
[
"openid"
,
"profile"
,
"email"
],
response_type:
"code"
,
issuer:
"https://<CASDOOR_HOSTNAME>"
,
client_auth_method:
"query"
,
discovery:
true
,
uid_field:
"sub"
,
client_options:
{
identifier:
"<YOUR CLIENT ID>"
,
secret:
"<YOUR CLIENT SECRET>"
,
redirect_uri:
"https://gitlab.example.com/users/auth/openid_connect/callback"
}
}
}
]
```
Example installations from source configuration (file path:
`config/gitlab.yml`
):
```
yaml
-
{
name
:
'
openid_connect'
,
label
:
'
Casdoor'
,
# optional label for login button, defaults to "Openid Connect"
args
:
{
name
:
'
openid_connect'
,
scope
:
[
'
openid'
,
'
profile'
,
'
email'
],
response_type
:
'
code'
,
issuer
:
'
https://<CASDOOR_HOSTNAME>'
,
discovery
:
true
,
client_auth_method
:
'
query'
,
uid_field
:
'
sub'
,
client_options
:
{
identifier
:
'
<YOUR
CLIENT
ID>'
,
secret
:
'
<YOUR
CLIENT
SECRET>'
,
redirect_uri
:
'
https://gitlab.example.com/users/auth/openid_connect/callback'
}
}
}
```
## General troubleshooting
If you're having trouble, here are some tips:
...
...
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