add userinfo_endpoint, remove introspection_endpoint and revocation_endpoint in /.well-known/openid-configuration

This commit is contained in:
Son NK 2019-08-10 13:40:44 +02:00
parent 8185af7770
commit 541cf80b77

View file

@ -160,6 +160,7 @@ def setup_openid_metadata(app):
"issuer": URL, "issuer": URL,
"authorization_endpoint": URL + "/oauth2/authorize", "authorization_endpoint": URL + "/oauth2/authorize",
"token_endpoint": URL + "/oauth2/token", "token_endpoint": URL + "/oauth2/token",
"userinfo_endpoint": URL + "/oauth2/userinfo",
"jwks_uri": URL + "/jwks", "jwks_uri": URL + "/jwks",
"response_types_supported": [ "response_types_supported": [
"code", "code",
@ -171,8 +172,8 @@ def setup_openid_metadata(app):
"subject_types_supported": ["public"], "subject_types_supported": ["public"],
"id_token_signing_alg_values_supported": ["RS256"], "id_token_signing_alg_values_supported": ["RS256"],
# todo: add introspection and revocation endpoints # todo: add introspection and revocation endpoints
"introspection_endpoint": URL + "/oauth2/token/introspection", # "introspection_endpoint": URL + "/oauth2/token/introspection",
"revocation_endpoint": URL + "/oauth2/token/revocation", # "revocation_endpoint": URL + "/oauth2/token/revocation",
} }
return jsonify(res) return jsonify(res)