GLinBoy / vue-keycloak-integration-demo

A sample Vue app that secured by Keycloak
MIT License
2 stars 0 forks source link

Error after login #80

Open Tahir-Imran opened 8 months ago

Tahir-Imran commented 8 months ago

Thank you for the demo code.

Following changes I have done to keycloak.json

{ "realm": "singlepoint-ai", "auth-server-url": "http://164.52.197.148:9910", "ssl-required": "external", "resource": "singlepoint-ai-client", // client_id "public-client": true, "confidential-port": 0

}

it shows the login page , but after I enter credentials, I see the below error in the browser.

Failed to load resource: the server responded with a status of 401 (Unauthorized)

Please help me out

GLinBoy commented 7 months ago

Hi Which page do you try to access?

As a reminder, in the application, we have 2 main pages restricted by user role. the User Secure page is accessible for every user that signed in. But the Admin Secure page is only available for users that have the admin role.