Skip to content
Snippets Groups Projects
Commit 99e3c9be authored by Antoine Lambert's avatar Antoine Lambert
Browse files

starlette: Allow to provide access token in authorization header

Previously the OpenID Connect backend was only allowing to provide
a refresh token in authorization header for convenient access token
renewal when querying a GraphQL service outside of a browser.

When one wants to query a GraphQL service inside a browser, the
access tokens are usually created and renewed client-side so also
allow to provide an access token in the authorization header.
In that case, the backend will simply try to decode it in order
to authenticate the user.

Related to swh/devel/swh-graphql#4652
parent 37161638
No related branches found
Tags swh-loader-highpriority-20221020.1
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment