Révision cf38fede
Ajouté par Serghei Mihai (congés, retour 15/05) il y a environ 9 ans
ckanext/ozwillo_pyoidc/oidc.py | ||
---|---|---|
63 | 63 |
""" |
64 | 64 |
authresp = self.parse_response(AuthorizationResponse, response, |
65 | 65 |
sformat="dict", keyjar=self.keyjar) |
66 |
|
|
67 |
if self.state != authresp['state']: |
|
68 |
raise OIDCError("Invalid state %s." % authresp["state"]) |
|
66 |
try: |
|
67 |
if self.state != authresp['state']: |
|
68 |
raise OIDCError("Invalid state %s." % authresp["state"]) |
|
69 |
except AttributeError: |
|
70 |
raise OIDCError("access denied") |
|
69 | 71 |
|
70 | 72 |
if isinstance(authresp, ErrorResponse): |
71 | 73 |
return OIDCError("Access denied") |
Formats disponibles : Unified diff
handling unauthorized user login attempt