thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
88 stars 14 forks source link

Auth0 `/userinfo` `access_token` #218

Closed jbolda closed 1 year ago

jbolda commented 1 year ago

Motivation

When implementing the auth0 simulator in Backstage, we ran into a situation where the authorization header was not set, but the access_token was passed as a query parameter. This PR takes it into consideration.

Approach

Check for the authorization header, then fall back to the query parameter, access_token, and throw an assertion error if neither are present on the /userinfo endpoint.

netlify[bot] commented 1 year ago

Deploy Preview for simulacrum canceled.

Name Link
Latest commit 4f620afd64d3124f0ca25f6bd214c5dbc6d5a6e4
Latest deploy log https://app.netlify.com/sites/simulacrum/deploys/635beb00a5223900083e1b63
dagda1 commented 1 year ago

@jbolda can we add a test here please for the new condition.