From bdf0e74af3dede249d5e146b70550f4ef0c2dbf7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 18 Jun 2020 19:39:58 +0200 Subject: [PATCH] docs: add supported scopes of oauth provider --- docs/providers.md | 7 +++++++ passbook/providers/oauth/settings.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/providers.md b/docs/providers.md index e7504e532..28cedf417 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -10,6 +10,13 @@ This provider uses the commonly used OpenID Connect variation of OAuth2. This provider is slightly different than the OpenID Provider. While it uses the same basic OAuth2 Protocol, it provides a GitHub-compatible Endpoint. This allows you to integrate Applications, which don't support Custom OpenID Providers. The API exposes Username, E-Mail, Name and Groups in a GitHub-compatible format. +This provider currently supports the following scopes: + +- `openid`: Access OpenID Userinfo +- `userinfo`: Access OpenID Userinfo +- `email`: Access OpenID Email +- `user:email`: GitHub Compatibility: User Email +- `read:org`: GitHub Compatibility: User Groups ## SAML Provider diff --git a/passbook/providers/oauth/settings.py b/passbook/providers/oauth/settings.py index f83a43279..925787a30 100644 --- a/passbook/providers/oauth/settings.py +++ b/passbook/providers/oauth/settings.py @@ -23,7 +23,7 @@ OAUTH2_PROVIDER = { # this is the list of available scopes "SCOPES": { "openid": "Access OpenID Userinfo", - "openid:userinfo": "Access OpenID Userinfo", + "userinfo": "Access OpenID Userinfo", "email": "Access OpenID Email", "user:email": "GitHub Compatibility: User Email", "read:org": "GitHub Compatibility: User Groups",