diff options
author | Evan Read <eread@gitlab.com> | 2019-06-10 01:03:09 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-06-10 01:03:09 +0000 |
commit | e5fb082b18f211421e2ea06aa4076d81595e4e3c (patch) | |
tree | 1d629d7c7840c06085dfefaebf58d822fb0451e3 | |
parent | 72611cbc3a81647cc7f93cd8a84ae3b9f37ec8c7 (diff) | |
parent | 0ac84f2bd37ca8fe85951da149ca90836dab3a1b (diff) | |
download | gitlab-ce-e5fb082b18f211421e2ea06aa4076d81595e4e3c.tar.gz |
Merge branch 'sh-troubleshooting-openid-docs' into 'master'
Add OpenID Connect troubleshooting docs
See merge request gitlab-org/gitlab-ce!29379
-rw-r--r-- | doc/administration/auth/oidc.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/administration/auth/oidc.md b/doc/administration/auth/oidc.md index df4f22aa3e7..00422ec347c 100644 --- a/doc/administration/auth/oidc.md +++ b/doc/administration/auth/oidc.md @@ -138,3 +138,26 @@ for more details: } } ``` + +### Troubleshooting + +If you're having trouble, here are some tips: + +1. Ensure `discovery` is set to `true`. Setting it to `false` requires +specifying all the URLs and keys required to make OpenID work. + +1. Check your system clock to ensure the time is synchronized properly. + +1. As mentioned in [the +documentation](https://github.com/m0n9oose/omniauth_openid_connect), +make sure `issuer` corresponds to the base URL of the Discovery URL. For +example, `https://accounts.google.com` is used for the URL +`https://accounts.google.com/.well-known/openid-configuration`. + +1. The OpenID Connect client uses HTTP Basic Authentication to send the +OAuth2 access token. For example, if you are seeing 401 errors upon +retrieving the `userinfo` endpoint, you may want to check your OpenID +Web server configuration. For example, for +[oauth2-server-php](https://github.com/bshaffer/oauth2-server-php), you +may need to [add a configuration parameter to +Apache](https://github.com/bshaffer/oauth2-server-php/issues/926#issuecomment-387502778). |