aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-12 02:41:57 +0300
committerMunyoki Kilyungi2024-03-13 15:34:57 +0300
commitd2f349433c08d2317bc2de6b21dd16cdb58f400c (patch)
tree01acf73c2e6382a3b2f6097c6f520b62fce351ff /tests
parent1c3d0fc73dfe4682ff41a2c8bd84a29f2d2b130a (diff)
downloadgn-auth-d2f349433c08d2317bc2de6b21dd16cdb58f400c.tar.gz
Define AuthorisationCode using frozen dataclass.
* gn_auth/auth/authentication/oauth2/models/authorization_code.py: Import dataclass, asdict, cached_property and AuthorizationCodeMixin. Remove NamedTuple import. (AuthorisationCode): Use frozen dataclass and explicitly inherit from AuthorizationCodeMixin. Delete unnecessary comment. (AuthorisationCode.response_type): Make this a cached_property. (AuthorisationCode.get_nonce): Delete. This is not defined in the RFC6749 spec. (save_authorisation_code): Replace _asdict() with asdict(...). Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions