diff options
author | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2019-03-26 14:50:41 +0100 |
---|---|---|
committer | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2019-03-26 14:50:41 +0100 |
commit | 53d3d335879f205ae705d93420f34984073cd5a1 (patch) | |
tree | 9748b3d22b422098eb18a1a2ab8ea3f11e3b7983 /docs | |
parent | 55b152c89879e0165ffc97039bf963905c27812d (diff) | |
download | oauthlib-53d3d335879f205ae705d93420f34984073cd5a1.tar.gz |
Renamed fill into finalize to add clarity
Diffstat (limited to 'docs')
-rw-r--r-- | docs/oauth2/oidc/id_tokens.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/oauth2/oidc/id_tokens.rst b/docs/oauth2/oidc/id_tokens.rst index 2387c01..a1bf7cf 100644 --- a/docs/oauth2/oidc/id_tokens.rst +++ b/docs/oauth2/oidc/id_tokens.rst @@ -3,7 +3,7 @@ ID Tokens The creation of `ID Tokens`_ is ultimately not done by OAuthLib but by your ``RequestValidator`` subclass. This is because their content is dependent on your implementation of users, their attributes, any claims you may wish to support, as well as the -details of how you model the notion of a Client Application. As such OAuthLib simply calls your validator's ``fill_id_token`` +details of how you model the notion of a Client Application. As such OAuthLib simply calls your validator's ``finalize_id_token`` method at the appropriate times during the authorization flow, depending on the grant type requested (Authorization Code, Implicit, Hybrid, etc.). @@ -12,7 +12,7 @@ See examples below. .. _`ID Tokens`: http://openid.net/specs/openid-connect-core-1_0.html#IDToken .. autoclass:: oauthlib.oauth2.RequestValidator - :members: fill_id_token + :members: finalize_id_token JWT/JWS example with pyjwt library @@ -38,7 +38,7 @@ You can switch to jwcrypto library if you want to return JWE instead. super().__init__(self, **kwargs) - def fill_id_token(self, id_token, token, token_handler, request): + def finalize_id_token(self, id_token, token, token_handler, request): import jwt id_token["iss"] = "https://my.cool.app.com" |