diff options
author | Frederick Muriuki Muriithi | 2023-05-27 13:50:51 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-05-27 13:50:51 +0300 |
commit | 45a7a6bc59eb28cdd2ceeee0e84506cf292b6466 (patch) | |
tree | be2ae04bdd0dc095f873c788e434c1338ee1dda4 /gn3/templates/oauth2/oauth2_error.html | |
parent | d03ca8f2cb25dceb785044f31d6ad4a6914c6f16 (diff) | |
download | genenetwork3-45a7a6bc59eb28cdd2ceeee0e84506cf292b6466.tar.gz |
Document Use of OAuth2 Clients
* docs/authentication_and_authorisation/oauth2_clients.md: New documentation
* gn3/auth/authentication/oauth2/server.py: Raise appropriate error if no
client is found.
* gn3/auth/authentication/oauth2/views.py: Handle exception in the case where
a UI should be presented to the user, rather than presenting the raw JSON
response to the user.
* gn3/errors.py: Handle any authlib OAuth2Error at the application's top-level
* gn3/templates/oauth2/oauth2_error.html: Handle any authlib OAuth2Error at
the application's top-level
Diffstat (limited to 'gn3/templates/oauth2/oauth2_error.html')
-rw-r--r-- | gn3/templates/oauth2/oauth2_error.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gn3/templates/oauth2/oauth2_error.html b/gn3/templates/oauth2/oauth2_error.html new file mode 100644 index 0000000..4edf9c4 --- /dev/null +++ b/gn3/templates/oauth2/oauth2_error.html @@ -0,0 +1,16 @@ +{%extends "base.html"%} + +{%block title%}OAuth2 Error{%endblock%} + +{%block content%} +{{flash_messages()}} + +<h1>Error: {{error.status_code}}</h1> + +There was an error trying to fulfill your request: + +<p> + <strong>{{error.error}}</strong>: + {{error.description}} +</p> +{%endblock%} |