I am incorporating this particular authentication module in conjunction with Keycloak.
In my nuxt.config.js configuration:
keycloak: {
_scheme: 'oauth2',
client_id: 'client-bo',
userinfo_endpoint: 'SERVER/protocol/openid-connect/userinfo',
authorization_endpoint: 'SERVER/protocol/openid-connect/auth',
//userinfo_endpoint: false,
access_type: 'offline',
access_token_endpoint: 'SERVER/protocol/openid-connect/token',
//response_type: 'code',
response_type: 'token id_token',
token_type: 'Bearer',
token_key: 'access_token',
scope: ['openid', 'profile', 'email'],
redirect_uri: 'http://127.0.0.1:3000/'
}
The connection has been established successfully.
Upon clicking the "connect" button, I am redirected to the Keycloak environment. After authenticating through Keycloak, I get redirected back to my nuxt.js application.
Yet, the issue arises as my store remains empty. Any insights on what might be causing this concern?
loggedIn
: always shows false
user
: consistently displays null
Any thoughts on why it's not functioning correctly?