Currently, I am utilizing .NET Core for the backend REST API and Vue.js for the frontend. In my current setup, I have implemented authentication through a cookie. However, I am now looking to switch to authenticating via Keycloak. The goal is to have the ...
I've been experimenting with using React alongside Keycloak. I've set up the realm, users, and client successfully. However, whenever I run npm start to launch my react project, the page keeps refreshing every second and the state changes. For e ...
I have integrated keycloak as an identity provider into my React application. I successfully added the keycloak react dependency via npm. Below are the versions of the keycloak react npm modules on which my application depends : "@react-keycloak/web ...
I am currently working on integrating ReactJS and Java Spring Boot applications, both protected by Keycloak 11.0.2. Keycloak is running on port 8083, ReactJS on port 3000, and the Spring Boot application on port 8085. However, when I attempt to utilize th ...
I am currently using next-auth with my Next.js application to handle authentication. Here is how I have configured it: .... export default NextAuth({ // Configure one or more authentication providers providers: [ KeycloakProvider({ id: 'my-ke ...
I'm having trouble establishing a connection to Keycloak from Loopback. I've been experimenting with the keycloak-connect library available at: https://github.com/keycloak/keycloak-nodejs-connect This snippet shows my current implementation in server/bo ...
I have been working on an Angular and Keycloak project. I followed a tutorial that helped me integrate Keycloak into Angular, which can be found here: https://www.npmjs.com/package/keycloak-angular My public client is able to request a token, but when it ...
When trying to access a Keycloak instance with Axios in my Vue.js app, I encounter a CORS error. Could someone please assist me with this issue? (Interestingly, when I send a POST request from POSTMAN to my Keycloak, it works fine). Here is the code I am ...
I have been attempting to authenticate in Keycloak within my Next.js application using @react-keycloak/nextjs. However, after successfully logging in, I keep getting redirected back to the Keycloak server and then back to the main page repeatedly until an ...
Trying to create e2e tests with Cypress for my NextJs Application. Currently using Next Auth to log into my keycloak account via OAuth and displaying certain nav bar elements based on keycloak roles. To test this, I set up a test realm with test users. How ...
I am currently working on implementing a mechanism to redirect unauthorized roles when attempting to access restricted routes using the keycloack-angular library: npm install keycloak-angular keycloak-js Custom Guard Implementation export class AuthGuar ...
To successfully extract user identities from a smartcard, I must adhere to the pattern format: CN=LAST.FIRST.MIDDLE.0000000000 The desired result should be: FIRST.LAST If this process were implemented in my own code, it would be straightforward: # Sampl ...
We are currently experiencing an issue with accessing our nodejs app from Chrome, which has Keycloak configured. Keycloak version: 21.0.1 When trying to access http://localhost:3101/graphql from Chrome, we encountered the following error in the browser c ...
In my Node.JS (express) project, I am utilizing a helpful NPM package called keycloak-connect to establish a connection with a keycloak server. While trying out the default protection mechanism for a specific route: app.get( '/about', keycloak ...
We have successfully integrated Keycloak with our application and the login and logout flow is functioning properly. However, we are facing an issue with authentication and authorization at the route level. When a user clears their browser session or the s ...
I have successfully integrated the angular keycloak adapter from https://www.npmjs.com/package/keycloak-angular to connect with our keycloak server. Currently, I am exploring the idphint attribute to redirect the request to a different identity provider. ...