Questions tagged [keycloak]

Keycloak stands out as a unified solution for single sign-on access management and identity control across various browser applications and RESTful web services. This platform is developed on the JBoss and WildFly foundations, ensuring alignment with industry standards like OAuth 2.0, Open ID Connect (OIDC), JSON Web Token (JWT), and SAML 2.0 specifications.

"Secure access with Keycloak authentication in a .NET Core API and Vue.js Single Page Application

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 ...

The occurrence of the page constantly refreshing and altering the query parameters 'state' and 'session' in the URL is a common issue encountered while integrating React with keycloak

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 ...

Prevent the need to go through the keycloak callback process each time the page is

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 ...

ReactJS application encountering CORS error while accessing endpoint in Spring Boot Application secured with Keycloak

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 ...

Unable to successfully log out from next-auth using the Keycloak provider

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 ...

Exploring the OAuth 2.0 integration with OpenID Connect, Loopback, and Keycloak

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 ...

Request for /Account after Keycloak token request in Angular app

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 ...

Encountering a CORS issue while attempting to retrieve a token from Keycloak using Vue.js and Axios

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 ...

What is the best approach to integrating Keycloak with Next.js?

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 ...

Logging in with Next Auth to a Keycloak account during testing in Cypress

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 ...

Angular and KeyCloack - Automatically redirect to specific route if user's role does not have access permissions

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 ...

Regular expression: Rearrange the order of matches within a capturing group

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 ...

The absence of the 'Access-Control-Allow-Origin' header is detected in the requested resource by Keycloak

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 ...

Encountering the error "Invalid parameter: redirect_uri" while attempting to authenticate with KeyCloak using NODE.JS

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 ...

Exploring the process of authentication and authorization at individual route levels within Angular 4 using 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 ...

What is the best way to integrate my Angular keycloak setup with an idphint attribute?

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. ...