Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
5675cebf
Unverified
Commit
5675cebf
authored
2 years ago
by
Richard van der Hoff
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
openid.md: fix some links
docbook doesn't auto-linkify links
parent
6ff99e3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/openid.md
+9
-9
9 additions, 9 deletions
docs/openid.md
with
9 additions
and
9 deletions
docs/openid.md
+
9
−
9
View file @
5675cebf
...
@@ -293,7 +293,7 @@ can be used to retrieve information on the authenticated user. As the Synapse
...
@@ -293,7 +293,7 @@ can be used to retrieve information on the authenticated user. As the Synapse
login mechanism needs an attribute to uniquely identify users, and that endpoint
login mechanism needs an attribute to uniquely identify users, and that endpoint
does not return a
`sub`
property, an alternative
`subject_claim`
has to be set.
does not return a
`sub`
property, an alternative
`subject_claim`
has to be set.
1.
Create a new OAuth application: https://github.com/settings/applications/new.
1.
Create a new OAuth application:
[
https://github.com/settings/applications/new
](
https://github.com/settings/applications/new
)
.
2.
Set the callback URL to
`[synapse public baseurl]/_synapse/client/oidc/callback`
.
2.
Set the callback URL to
`[synapse public baseurl]/_synapse/client/oidc/callback`
.
Synapse config:
Synapse config:
...
@@ -322,10 +322,10 @@ oidc_providers:
...
@@ -322,10 +322,10 @@ oidc_providers:
[
Google
][
google-idp
]
is an OpenID certified authentication and authorisation provider.
[
Google
][
google-idp
]
is an OpenID certified authentication and authorisation provider.
1.
Set up a project in the Google API Console (see
1.
Set up a project in the Google API Console (see
https://developers.google.com/identity/protocols/oauth2/openid-connect#appsetup).
[
documentation
](
https://developers.google.com/identity/protocols/oauth2/openid-connect#appsetup
)
)
.
2
.
Add an "OAuth Client ID" for a Web Application under "Credentials".
3
.
Add an "OAuth Client ID" for a Web Application under "Credentials".
3
.
Copy the Client ID and Client Secret, and add the following to your synapse config:
4
.
Copy the Client ID and Client Secret, and add the following to your synapse config:
```
yaml
```
yaml
oidc_providers
:
oidc_providers
:
-
idp_id
:
google
-
idp_id
:
google
...
@@ -501,8 +501,8 @@ As well as the private key file, you will need:
...
@@ -501,8 +501,8 @@ As well as the private key file, you will need:
*
Team ID: a 10-character ID associated with your developer account.
*
Team ID: a 10-character ID associated with your developer account.
*
Key ID: the 10-character identifier for the key.
*
Key ID: the 10-character identifier for the key.
https://help.apple.com/developer-account/?lang=en#/dev77c875b7e
has more
[
Apple's developer documentation
](
https://help.apple.com/developer-account/?lang=en#/dev77c875b7e
)
document
ation on setting up SiWA.
has more inform
ation on setting up SiWA.
The synapse config will look like this:
The synapse config will look like this:
...
@@ -535,8 +535,8 @@ needed to add OAuth2 capabilities to your Django projects. It supports
...
@@ -535,8 +535,8 @@ needed to add OAuth2 capabilities to your Django projects. It supports
Configuration on Django's side:
Configuration on Django's side:
1.
Add an application: https://example.com/admin/oauth2_provider/application/add/ and choose parameters like this:
1.
Add an application:
`
https://example.com/admin/oauth2_provider/application/add/
`
and choose parameters like this:
*
`Redirect uris`
: https://synapse.example.com/_synapse/client/oidc/callback
*
`Redirect uris`
:
`
https://synapse.example.com/_synapse/client/oidc/callback
`
*
`Client type`
:
`Confidential`
*
`Client type`
:
`Confidential`
*
`Authorization grant type`
:
`Authorization code`
*
`Authorization grant type`
:
`Authorization code`
*
`Algorithm`
:
`HMAC with SHA-2 256`
*
`Algorithm`
:
`HMAC with SHA-2 256`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment