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
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
I am trying to make an authenticated request from postman to my node, apollo, express backend. I am getting an error saying that the user is unauthenticated. When I look at the context object, there is no access token and calling context.kauth.isAuthenticated() returns false.
Looking at the access token, I can see that accessToken is indeed blank, but there does exist the Bearer Token in the request header.
So I am not sure why the access token is not being included. Could this be a bug?
I am making the request from postman, I am including the token in the request like so:
In order to get this access token, I am first making a postman request to keycloak to generate this token like so (note that I am intentionally not showing my username and password for this post
I am using the above access token in my postman request above.
I am trying to make an authenticated request from postman to my node, apollo, express backend. I am getting an error saying that the user is unauthenticated. When I look at the context object, there is no access token and calling context.kauth.isAuthenticated() returns false.
Looking at the access token, I can see that
accessToken
is indeed blank, but there does exist the Bearer Token in the request header.So I am not sure why the access token is not being included. Could this be a bug?
I am making the request from postman, I am including the token in the request like so:
In order to get this access token, I am first making a postman request to keycloak to generate this token like so (note that I am intentionally not showing my username and password for this post
I am using the above access token in my postman request above.
This is what my
index.js
file looks like:And this is my keyclaok.json file:
I am really quite stummped, my initial thought is that I am not making the reqest from postman correctly. Am grateful for any guidance
The text was updated successfully, but these errors were encountered: