You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use your middleware in my Flask API, authenticating with Keycloak, but I'm getting an error on token = json.loads(token). It seems like it's skipping a "decode jwt" step.
Below is my api setup -- am I using this wrong?
importos# Got a lookup error when trying the `CustomConfig` approach from READMEos.environ['FLASK_DEBUG'] ='True'os.environ['FLASK_OIDC_PROVIDER_NAME'] ='keycloak'os.environ['FLASK_OIDC_CLIENT_ID'] ='api'os.environ['FLASK_OIDC_CLIENT_SECRET'] =os.environ['API_CLIENT_SECRET']
os.environ['FLASK_OIDC_CONFIG_URL'] ='http://keycloak:8080/auth/realms/global/.well-known/openid-configuration'os.environ['FLASK_OIDC_USER_ID_FIELD'] ='preferred_username'fromflaskimportgfromflaskoidcimportFlaskOIDCapp=FlaskOIDC(__name__)
@app.route("/hello")defhello():
returng.oidc_token_info
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use your middleware in my Flask API, authenticating with Keycloak, but I'm getting an error on
token = json.loads(token)
. It seems like it's skipping a "decode jwt" step.Below is my api setup -- am I using this wrong?
The text was updated successfully, but these errors were encountered: