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 }}
Repository navigation
Can't able to authenticate the user in our backend
#19915
We have our FastAPI(python) as backend server and using keycloak for authentication. Our frontend is VueJs application and we are using python-keycloak python package in our FastAPI application. We have hosted the backend and keycloak in the same server.
They are running in separate ports in the same server. When the user logins the VueJs application, accessToken is successfully fetched from keycloak server. Then I sent the accessToken to my backend server from my VueJs frontend. Now I want to introspect the token sent from the client side in our fastAPI backend. Our FastAPI application sends the introspect request to the keycloak server through the local network not through DNS. The introspect operation results in Unauthorized. I have searched about these issues in stackoverflow and I found this stackoverflow answer related to this issue. But our server cant make a request to keycloak server through DNS server in the roundtrip manner. So we want to introspect the token by making request to the keycloak server running in the localhost.
We want to do the following..
Say the ip address for our system is 12.34.56.78
Get the accessToken by made a request to our domain where the keycloak server is hosted say id.example.com (12.34.56.78)
We want to introspect the token in our FastAPI backend by making a request to localhost (12.34.56.78)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
We have our FastAPI(python) as backend server and using keycloak for authentication. Our frontend is VueJs application and we are using python-keycloak python package in our FastAPI application. We have hosted the backend and keycloak in the same server.
They are running in separate ports in the same server. When the user logins the VueJs application, accessToken is successfully fetched from keycloak server. Then I sent the accessToken to my backend server from my VueJs frontend. Now I want to introspect the token sent from the client side in our fastAPI backend. Our FastAPI application sends the introspect request to the keycloak server through the local network not through DNS. The introspect operation results in Unauthorized. I have searched about these issues in stackoverflow and I found this stackoverflow answer related to this issue. But our server cant make a request to keycloak server through DNS server in the roundtrip manner. So we want to introspect the token by making request to the keycloak server running in the localhost.
We want to do the following..
Say the ip address for our system is 12.34.56.78
All reactions