Replies: 1 comment
-
Not sure if this is the right way:
in
with
and this works.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to impl SecurityScheme with keycloak and openid_connect.
What I did so far:
I added Security Scheme OpenIdAuth
Added user_checker function. It looks like user_checker for
ty=open_idconnect
must be with Bearer argument and Option as a return type.I also added endpoints
/auth
which redirects to keycloak login page, and/auth_redirect
where I am able to verify keycloak response and getid_token
anduser_info
.The problem:
after going through
/auth_redirect
endpoint a would expect that user is authenticated and able to access protected and point such as:but that is not happening.
I just get 401 'authorization error' response, and user_checker function is not called at all.
Am I missing something?
Should I set JWT token in cookie/header in response of
/auth_redirect
or something like that?Also, I would expect that in user_checker I should get JWT token and verify it (check if it is valid, expired, etc...)
Beta Was this translation helpful? Give feedback.
All reactions