From 541cf80b772c0f0a3b558763ac8475752e5f8a2f Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 10 Aug 2019 13:40:44 +0200 Subject: [PATCH] add userinfo_endpoint, remove introspection_endpoint and revocation_endpoint in /.well-known/openid-configuration --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 4b33a564..5078f137 100644 --- a/server.py +++ b/server.py @@ -160,6 +160,7 @@ def setup_openid_metadata(app): "issuer": URL, "authorization_endpoint": URL + "/oauth2/authorize", "token_endpoint": URL + "/oauth2/token", + "userinfo_endpoint": URL + "/oauth2/userinfo", "jwks_uri": URL + "/jwks", "response_types_supported": [ "code", @@ -171,8 +172,8 @@ def setup_openid_metadata(app): "subject_types_supported": ["public"], "id_token_signing_alg_values_supported": ["RS256"], # todo: add introspection and revocation endpoints - "introspection_endpoint": URL + "/oauth2/token/introspection", - "revocation_endpoint": URL + "/oauth2/token/revocation", + # "introspection_endpoint": URL + "/oauth2/token/introspection", + # "revocation_endpoint": URL + "/oauth2/token/revocation", } return jsonify(res)