# Securing applications

**URL:** https://forum.keycloak.org/c/securing-applications/5.md

[Latest](https://forum.keycloak.org/latest.md) · [Categories](https://forum.keycloak.org/categories.md) · [Tags](https://forum.keycloak.org/tags.md)

---

## [Access-Control-Allow-Origin header missing](https://forum.keycloak.org/t/access-control-allow-origin-header-missing/328)

<div class="topic-metadata">

**Author:** [@kevinarthur](https://forum.keycloak.org/u/kevinarthur)\
**Replies:** 26\
**Last updated:** [March 8, 2022, 4:36pm UTC](https://forum.keycloak.org/t/access-control-allow-origin-header-missing/328 "2022-03-08T16:36:49Z")

</div>

I’ve added \* to the Web Origins for my NodeJS Connect client as well as my NodeJS API client. I’ve also added enable-cors = true to my keycloak.json. Even with both of these, I still can’t redirect to Keycloak from my No…

---

## [Custom Login Page with social login (not the one from Keycloak)](https://forum.keycloak.org/t/custom-login-page-with-social-login-not-the-one-from-keycloak/12166)

<div class="topic-metadata">

**Author:** [@piettes](https://forum.keycloak.org/u/piettes)\
**Replies:** 17\
**Last updated:** [November 30, 2021, 5:13pm UTC](https://forum.keycloak.org/t/custom-login-page-with-social-login-not-the-one-from-keycloak/12166 "2021-11-30T17:13:35Z")

</div>

Hello, I am trying to create to have my own custom page for the login into Keycloak, with user & pass, but also with social login (Facebook & Google). Is there a way to have my completely self made login page, which me…

---

## [PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target](https://forum.keycloak.org/t/pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/1593)

<div class="topic-metadata">

**Author:** [@rareddy](https://forum.keycloak.org/u/rareddy)\
**Replies:** 10\
**Last updated:** [April 17, 2023, 1:48pm UTC](https://forum.keycloak.org/t/pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/1593 "2023-04-17T13:48:59Z")

</div>

Hi, I am using the Keycloak on Openshift, I installed using the 8.0.2 version of the operator, stood up a an example instance, created a client, all that is good. I also have spring boot based java application that I a…

---

## [Can I use SMS OTP Authentication in Keycloak?](https://forum.keycloak.org/t/can-i-use-sms-otp-authentication-in-keycloak/5368)

<div class="topic-metadata">

**Author:** [@mohankumar.d](https://forum.keycloak.org/u/mohankumar.d)\
**Replies:** 13\
**Last updated:** [March 30, 2022, 2:58pm UTC](https://forum.keycloak.org/t/can-i-use-sms-otp-authentication-in-keycloak/5368 "2022-03-30T14:58:33Z")

</div>

Team, We are using Keycloak 11.0.2 for common Auth in a microservice architecture. One of our client requirement is app need to log-in using user-id and with SMS OTP (Twilio provider). Is there is any plugin available t…

---

## [Keycloak JS client and confidential clients](https://forum.keycloak.org/t/keycloak-js-client-and-confidential-clients/10063)

<div class="topic-metadata">

**Author:** [@simonjcarr](https://forum.keycloak.org/u/simonjcarr)\
**Replies:** 9\
**Last updated:** [May 20, 2023, 2:19pm UTC](https://forum.keycloak.org/t/keycloak-js-client-and-confidential-clients/10063 "2023-05-20T14:19:39Z")

</div>

The keycloak-js client no longer supports the ability to add a keycloak clientSecret, this means for Front End JS Apps, you can only use a Public keycloak client. Public keycloak clients do not allow you to configure fi…

---

## [How to create a custom login page using javascript adapter](https://forum.keycloak.org/t/how-to-create-a-custom-login-page-using-javascript-adapter/470)

<div class="topic-metadata">

**Author:** [@formicheedintorni](https://forum.keycloak.org/u/formicheedintorni)\
**Replies:** 15\
**Last updated:** [February 9, 2021, 5:46am UTC](https://forum.keycloak.org/t/how-to-create-a-custom-login-page-using-javascript-adapter/470 "2021-02-09T05:46:39Z")

</div>

Hi! I’m trying to create on my application a login page using javascript adapter and curl php for user authentication on sso. I’m using version 6.0 of keycloak. I created a client (both with client secret and without), …

---

## [Using Keycloak as IdP for Azure AD](https://forum.keycloak.org/t/using-keycloak-as-idp-for-azure-ad/10449)

<div class="topic-metadata">

**Author:** [@William\_CTO](https://forum.keycloak.org/u/William_CTO)\
**Replies:** 27\
**Last updated:** [May 12, 2024, 6:32am UTC](https://forum.keycloak.org/t/using-keycloak-as-idp-for-azure-ad/10449 "2024-05-12T06:32:48Z")

</div>

I know it is pretty easy to setup Azure AD as an IdP for Keycloak, but I’d like to use Keycloak as an identity provider for Azure AD / Microsoft 365. Here is some documentation on using SAML 2.0 for Azure AD. Azure AD C…

---

## [Too many redirects after login to Keycloak with Nginx as reverse proxy](https://forum.keycloak.org/t/too-many-redirects-after-login-to-keycloak-with-nginx-as-reverse-proxy/12379)

<div class="topic-metadata">

**Author:** [@mohammadmjn](https://forum.keycloak.org/u/mohammadmjn)\
**Replies:** 10\
**Last updated:** [December 5, 2021, 6:04pm UTC](https://forum.keycloak.org/t/too-many-redirects-after-login-to-keycloak-with-nginx-as-reverse-proxy/12379 "2021-12-05T18:04:17Z")

</div>

I have secured a PHP app using Keycloak and the package provided here. I’m running Nginx as a reverse proxy and Keycloak on the same machine with Ubuntu 18.04. Also I think it’s worth mentioning that all ports on the se…

---

## [Springboot application with keycloak adapter not working behind an HTTPS proxy](https://forum.keycloak.org/t/springboot-application-with-keycloak-adapter-not-working-behind-an-https-proxy/15845)

<div class="topic-metadata">

**Author:** [@aanciaes](https://forum.keycloak.org/u/aanciaes)\
**Replies:** 17\
**Last updated:** [June 21, 2023, 9:06pm UTC](https://forum.keycloak.org/t/springboot-application-with-keycloak-adapter-not-working-behind-an-https-proxy/15845 "2023-06-21T21:06:05Z")

</div>

Hi I have a small spring boot application being protected by keycloak 17.0.1 springboot adapter. It works fine with http but when running behind a https proxy (responsible for offload the https external requests to int…

---

## [Spring security adapter roles](https://forum.keycloak.org/t/spring-security-adapter-roles/2044)

<div class="topic-metadata">

**Author:** [@Ga13Ou](https://forum.keycloak.org/u/Ga13Ou)\
**Replies:** 10\
**Last updated:** [November 3, 2020, 8:08am UTC](https://forum.keycloak.org/t/spring-security-adapter-roles/2044 "2020-11-03T08:08:43Z")

</div>

Hi guys, I have a quick question about Roles When I use the hasRole() method or hasAuthority() method of spring security, it only checks with the client roles assigned to the user and it doesn’t care about the Realm rol…

---

## [Error=password\_rejected, reason='Could not modify attribute for DN](https://forum.keycloak.org/t/error-password-rejected-reason-could-not-modify-attribute-for-dn/9446)

<div class="topic-metadata">

**Author:** [@RalapZ](https://forum.keycloak.org/u/RalapZ)\
**Replies:** 14\
**Last updated:** [February 21, 2023, 3:35pm UTC](https://forum.keycloak.org/t/error-password-rejected-reason-could-not-modify-attribute-for-dn/9446 "2023-02-21T15:35:13Z")

</div>

description： when I modifed ​password， error message: WARN \[org.keycloak.events\] (default task-44) type=UPDATE\_PASSWORD\_ERROR, realmId=master, clientId=security-admin-console, userId=ce4b5650-90b3-4946-be86-67ee4b1…

---

## [Javascript adapter promise error after upgrade to keycloak 11](https://forum.keycloak.org/t/javascript-adapter-promise-error-after-upgrade-to-keycloak-11/4200)

<div class="topic-metadata">

**Author:** [@tanya1218](https://forum.keycloak.org/u/tanya1218)\
**Replies:** 11\
**Last updated:** [October 18, 2021, 9:46am UTC](https://forum.keycloak.org/t/javascript-adapter-promise-error-after-upgrade-to-keycloak-11/4200 "2021-10-18T09:46:51Z")

</div>

We upgraded to version 11 because of the SameSite cookie issue. But now our app cannot initiate keycloak using the javascript adapter. We receive this error: Error: Uncaught (in promise): TypeError: Method Promise.pro…

---

## [SSO Idle Timeout](https://forum.keycloak.org/t/sso-idle-timeout/4125)

<div class="topic-metadata">

**Author:** [@EnesToptas](https://forum.keycloak.org/u/EnesToptas)\
**Replies:** 15\
**Last updated:** [August 13, 2020, 6:42am UTC](https://forum.keycloak.org/t/sso-idle-timeout/4125 "2020-08-13T06:42:02Z")

</div>

Hello, I have a nodejs app with a react front end. I want that if a user doesn’t do anything in the browser for a while he must be logged out. So I set the SSO Idle Timeout to 1 minute, for trying. But it doesn’t seem t…

---

## [Custom scheme for native mobile apps](https://forum.keycloak.org/t/custom-scheme-for-native-mobile-apps/1773)

<div class="topic-metadata">

**Author:** [@flapouille](https://forum.keycloak.org/u/flapouille)\
**Replies:** 12\
**Last updated:** [March 30, 2020, 12:41pm UTC](https://forum.keycloak.org/t/custom-scheme-for-native-mobile-apps/1773 "2020-03-30T12:41:17Z")

</div>

Hello, We are currently developing the integration of Keycloak within our native mobile applications. In the documentation we can see a section regarding Cordova apps, but not native. Is it properly supported ? Saying …

---

## [I have a web application with Angular 9, keycloak 9 and springboot 2.5 when my rest API is on Windows 10 all works well, but when I put it on Linux I always have an http 401 in response?](https://forum.keycloak.org/t/i-have-a-web-application-with-angular-9-keycloak-9-and-springboot-2-5-when-my-rest-api-is-on-windows-10-all-works-well-but-when-i-put-it-on-linux-i-always-have-an-http-401-in-response/1937)

<div class="topic-metadata">

**Author:** [@Gestator](https://forum.keycloak.org/u/Gestator)\
**Replies:** 14\
**Last updated:** [April 9, 2020, 2:26pm UTC](https://forum.keycloak.org/t/i-have-a-web-application-with-angular-9-keycloak-9-and-springboot-2-5-when-my-rest-api-is-on-windows-10-all-works-well-but-when-i-put-it-on-linux-i-always-have-an-http-401-in-response/1937 "2020-04-09T14:26:41Z")

</div>

I developed a client server application with angular java and keycloak everything works well with a docker for keycloak ensiute I put my UI under docker all works well, last step I but my java code and there I always get…

---

## [Revoke refresh tokens after password reset](https://forum.keycloak.org/t/revoke-refresh-tokens-after-password-reset/11159)

<div class="topic-metadata">

**Author:** [@francescopessina87](https://forum.keycloak.org/u/francescopessina87)\
**Replies:** 12\
**Last updated:** [October 25, 2021, 12:55pm UTC](https://forum.keycloak.org/t/revoke-refresh-tokens-after-password-reset/11159 "2021-10-25T12:55:30Z")

</div>

Hello everyone :slight\_smile: We are experiencing something (I think) weird and we need to know how to solve this with Keycloak. We have an application which stores the refresh token for users. These are offline tokens…

---

## [Keycloak sends 403 Access Denied with NodeJS Adapter](https://forum.keycloak.org/t/keycloak-sends-403-access-denied-with-nodejs-adapter/1660)

<div class="topic-metadata">

**Author:** [@luisRios](https://forum.keycloak.org/u/luisRios)\
**Replies:** 10\
**Last updated:** [November 3, 2021, 7:16pm UTC](https://forum.keycloak.org/t/keycloak-sends-403-access-denied-with-nodejs-adapter/1660 "2021-11-03T19:16:01Z")

</div>

Hi! I have a simple NodeJS application which I’d like to protect with keycloak-connect, but everytime returns a 403 - Access Denied error. I have done all the tutorials i’ve found (same code, same keycloack and node ver…

---

## [Fixed: Unable to locate keystore file](https://forum.keycloak.org/t/fixed-unable-to-locate-keystore-file/11397)

<div class="topic-metadata">

**Author:** [@hauschka](https://forum.keycloak.org/u/hauschka)\
**Replies:** 9\
**Last updated:** [October 8, 2021, 8:15am UTC](https://forum.keycloak.org/t/fixed-unable-to-locate-keystore-file/11397 "2021-10-08T08:15:23Z")

</div>

Hi community, I’ve been using keycloak for about a year to secure access to 2 separate web applications. With one app, I’m using OpenID Connect proxy authentication to put the app behind authentication. This has worke…

---

## [Generated client secret's "entropy" should be increased](https://forum.keycloak.org/t/generated-client-secrets-entropy-should-be-increased/5971)

<div class="topic-metadata">

**Author:** [@dalu](https://forum.keycloak.org/u/dalu)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 5:45pm UTC](https://forum.keycloak.org/t/generated-client-secrets-entropy-should-be-increased/5971 "2024-01-25T17:45:36Z")

</div>

Right now the client secret is generated by creating a new uuid(v4?) string, which has a predictable length and despite it being 32 chars long without the dashes it’s only using \[0-9a-f\] characters. example a481c2ef-2ba…

---

## [Single Sign-Out (I.e. Logout of all sessions)?](https://forum.keycloak.org/t/single-sign-out-i-e-logout-of-all-sessions/7163)

<div class="topic-metadata">

**Author:** [@nub340](https://forum.keycloak.org/u/nub340)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 9:52am UTC](https://forum.keycloak.org/t/single-sign-out-i-e-logout-of-all-sessions/7163 "2021-03-10T09:52:13Z")

</div>

We have several mobile applications (Android) and multiple websites that all use the same Keycloak v11 server instance we setup for SSO. The login part seems to be working well so far. Now we want to give our users the a…

---

## [Machine 2 Machine authentication](https://forum.keycloak.org/t/machine-2-machine-authentication/6729)

<div class="topic-metadata">

**Author:** [@niro](https://forum.keycloak.org/u/niro)\
**Replies:** 8\
**Last updated:** [February 8, 2021, 5:31pm UTC](https://forum.keycloak.org/t/machine-2-machine-authentication/6729 "2021-02-08T17:31:58Z")

</div>

Hi, I am currently using KC to secure my FE application / API. I would like to use it to secure my API in a context of server to server / machine to machine. If I understand correctly I should use Client Credentials f…

---

## [Brute Force Detection issue: login failure count not resetting after successful login](https://forum.keycloak.org/t/brute-force-detection-issue-login-failure-count-not-resetting-after-successful-login/117)

<div class="topic-metadata">

**Author:** [@vishnukprakash](https://forum.keycloak.org/u/vishnukprakash)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 9:00am UTC](https://forum.keycloak.org/t/brute-force-detection-issue-login-failure-count-not-resetting-after-successful-login/117 "2021-05-27T09:00:13Z")

</div>

When Brute Force Detection in enabled the login failure count is not resetting after successful login. As per the Permanent Lockout Algorithm described in keycloak documentation, the failure count should reset on success…

---

## [KC 17 Quarkus: how to disable https for /admin endpoints](https://forum.keycloak.org/t/kc-17-quarkus-how-to-disable-https-for-admin-endpoints/14249)

<div class="topic-metadata">

**Author:** [@joseph-cotton-kahoa](https://forum.keycloak.org/u/joseph-cotton-kahoa)\
**Replies:** 5\
**Last updated:** [March 14, 2022, 4:26pm UTC](https://forum.keycloak.org/t/kc-17-quarkus-how-to-disable-https-for-admin-endpoints/14249 "2022-03-14T16:26:38Z")

</div>

Hello, I’m building a greenfield application, and am considering using KC 17 Quarkus as the auth provider. I’ve used KC 15 in the past, and it’s really worked well. I’m having some trouble with 17. In the past, I’ve se…

---

## [Revoking or invalidating an authorization token?](https://forum.keycloak.org/t/revoking-or-invalidating-an-authorization-token/1032)

<div class="topic-metadata">

**Author:** [@mlevin2](https://forum.keycloak.org/u/mlevin2)\
**Replies:** 5\
**Last updated:** [July 13, 2024, 4:37pm UTC](https://forum.keycloak.org/t/revoking-or-invalidating-an-authorization-token/1032 "2024-07-13T16:37:07Z")

</div>

Hi, My apologies for crossposting. I wasn’t sure if the right place to ask this was here or on the Google Group. I’m trying to figure out if Keycloak supports any sort of token revokation as described in RFC 7009, like…

---

## [Keycloak server issuing already expired tokens](https://forum.keycloak.org/t/keycloak-server-issuing-already-expired-tokens/15900)

<div class="topic-metadata">

**Author:** [@nulltrope](https://forum.keycloak.org/u/nulltrope)\
**Replies:** 6\
**Last updated:** [November 8, 2023, 1:41am UTC](https://forum.keycloak.org/t/keycloak-server-issuing-already-expired-tokens/15900 "2023-11-08T01:41:41Z")

</div>

Hi there, We recently began using Keycloak to issue access tokens using the OIDC Authorization Code flow, and have a custom app written in Golang which handles the flow/callbacks and saves the resulting access token as …

---

## [Getting "invalid\_grant" during client token request using authorization code](https://forum.keycloak.org/t/getting-invalid-grant-during-client-token-request-using-authorization-code/2042)

<div class="topic-metadata">

**Author:** [@arozar](https://forum.keycloak.org/u/arozar)\
**Replies:** 4\
**Last updated:** [April 21, 2021, 9:41am UTC](https://forum.keycloak.org/t/getting-invalid-grant-during-client-token-request-using-authorization-code/2042 "2021-04-21T09:41:55Z")

</div>

I’m following the implementer’s guide from https://openid.net/specs/openid-connect-basic-1\_0.html. I’m trying to use the authorization code that is presented to the end-user after login. According to 2.1.6.1. Client Sen…

---

## [Keycloak token still is valid after logout (spring boot)](https://forum.keycloak.org/t/keycloak-token-still-is-valid-after-logout-spring-boot/11929)

<div class="topic-metadata">

**Author:** [@hosseinyzr](https://forum.keycloak.org/u/hosseinyzr)\
**Replies:** 4\
**Last updated:** [November 13, 2021, 8:33am UTC](https://forum.keycloak.org/t/keycloak-token-still-is-valid-after-logout-spring-boot/11929 "2021-11-13T08:33:02Z")

</div>

I’m using Keycloak and spring boot. the problem is when I log out session in Keycloak panel or with rest call in spring project, although the session will be removed from Keycloak, the user can still use that token to au…

---

## [CORS different with client public or confidential](https://forum.keycloak.org/t/cors-different-with-client-public-or-confidential/475)

<div class="topic-metadata">

**Author:** [@torsten](https://forum.keycloak.org/u/torsten)\
**Replies:** 7\
**Last updated:** [July 7, 2020, 7:33am UTC](https://forum.keycloak.org/t/cors-different-with-client-public-or-confidential/475 "2020-07-07T07:33:33Z")

</div>

Hi there, I have angular app. When I set the access type to confidential I get CORS errors in the browser and no ‘Access-Control-Allow-Origin’ header is present. When switching to public I get no CORS Problem and I ca…

---

## [When should the "Keycloak OpenID Connect" identity provider be preferred over the "OpenID Connect v1.0" provider?](https://forum.keycloak.org/t/when-should-the-keycloak-openid-connect-identity-provider-be-preferred-over-the-openid-connect-v1-0-provider/22287)

<div class="topic-metadata">

**Author:** [@MylesRip](https://forum.keycloak.org/u/MylesRip)\
**Replies:** 1\
**Last updated:** [October 29, 2024, 8:58am UTC](https://forum.keycloak.org/t/when-should-the-keycloak-openid-connect-identity-provider-be-preferred-over-the-openid-connect-v1-0-provider/22287 "2024-10-29T08:58:36Z")

</div>

I see that the KeycloakOIDCIdentityProvider (keycloak-oidc) extends the OIDCIdentityProvider (oidc). On further investigation, I see that it adds a VALIDATED\_ACCESS\_TOKEN to the context data, but removes some flexibility…

---

## [Defective token detected (Mechanism level: GSSHeader did not find the right tag](https://forum.keycloak.org/t/defective-token-detected-mechanism-level-gssheader-did-not-find-the-right-tag/2235)

<div class="topic-metadata">

**Author:** [@pajke](https://forum.keycloak.org/u/pajke)\
**Replies:** 6\
**Last updated:** [November 24, 2021, 4:09pm UTC](https://forum.keycloak.org/t/defective-token-detected-mechanism-level-gssheader-did-not-find-the-right-tag/2235 "2021-11-24T16:09:19Z")

</div>

Hello there, i installed the keycloak server and generated some keytab on my win server machine. Also i configured the kerberos auth in keycloak web server, and after trying to auth via keberso getting this kind of error…

---

## [java/security/acl/Group no longer supported in java 14](https://forum.keycloak.org/t/java-security-acl-group-no-longer-supported-in-java-14/6099)

<div class="topic-metadata">

**Author:** [@Jakob](https://forum.keycloak.org/u/Jakob)\
**Replies:** 7\
**Last updated:** [May 26, 2021, 3:21pm UTC](https://forum.keycloak.org/t/java-security-acl-group-no-longer-supported-in-java-14/6099 "2021-05-26T15:21:57Z")

</div>

Hello, is there a workaround or a future release to deal with higher java version like 14. In Java 14 java/security/acl/Group is removed and the keycloak java adapter no longer works in java 14. Note: Downgrading the …

---

## [JS adapter in SPA: authenticate in background without redirect (silent login-required)](https://forum.keycloak.org/t/js-adapter-in-spa-authenticate-in-background-without-redirect-silent-login-required/5400)

<div class="topic-metadata">

**Author:** [@jens1](https://forum.keycloak.org/u/jens1)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 8:19pm UTC](https://forum.keycloak.org/t/js-adapter-in-spa-authenticate-in-background-without-redirect-silent-login-required/5400 "2021-08-24T20:19:58Z")

</div>

Hello everyone, I have an SPA using the Javascript adapter. Keycloak is configured to authenticate through a default IDP, so users are immediately redirected to the IDP without seeing the Keycloak forms. However 90% of …

---

## [403 using FeignClient, RequestInterceptor and Bearer Token](https://forum.keycloak.org/t/403-using-feignclient-requestinterceptor-and-bearer-token/4991)

<div class="topic-metadata">

**Author:** [@minky](https://forum.keycloak.org/u/minky)\
**Replies:** 5\
**Last updated:** [October 3, 2020, 2:55am UTC](https://forum.keycloak.org/t/403-using-feignclient-requestinterceptor-and-bearer-token/4991 "2020-10-03T02:55:03Z")

</div>

Hello Keycloak Community, I am trying to integrate keycloak with several spring boot microservices + spring security. I watched Thomas Darimont’s excellent spring/keycloak presentation on YouTube and downloaded his git…

---

## [Rate limit on registration mail sending](https://forum.keycloak.org/t/rate-limit-on-registration-mail-sending/6757)

<div class="topic-metadata">

**Author:** [@Amit](https://forum.keycloak.org/u/Amit)\
**Replies:** 0\
**Last updated:** [January 12, 2021, 10:28am UTC](https://forum.keycloak.org/t/rate-limit-on-registration-mail-sending/6757 "2021-01-12T10:28:29Z")

</div>

Hi, We at our organization are using keycloak for SSO. I would like to know if there is any rate limiting option for sending verification mail. Is it possible to have a timer before a user click “resend” link for email …

---

## [SpringBoot/SpringSecurity: Access SecurityContext from custom KeycloakConfigResolver](https://forum.keycloak.org/t/springboot-springsecurity-access-securitycontext-from-custom-keycloakconfigresolver/4977)

<div class="topic-metadata">

**Author:** [@Opa](https://forum.keycloak.org/u/Opa)\
**Replies:** 0\
**Last updated:** [September 22, 2020, 12:50pm UTC](https://forum.keycloak.org/t/springboot-springsecurity-access-securitycontext-from-custom-keycloakconfigresolver/4977 "2020-09-22T12:50:49Z")

</div>

Hello, I’m trying to configure the security of a Spring Boot application with a multi-tenancy approach. I have the use case where a same REST endpoint can be secured by multiple Keycloak realms. The resolver is correc…

---

## [Keycloak & Spring Cloud Gateway](https://forum.keycloak.org/t/keycloak-spring-cloud-gateway/1745)

<div class="topic-metadata">

**Author:** [@urosbelov](https://forum.keycloak.org/u/urosbelov)\
**Replies:** 4\
**Last updated:** [June 4, 2023, 4:02pm UTC](https://forum.keycloak.org/t/keycloak-spring-cloud-gateway/1745 "2023-06-04T16:02:20Z")

</div>

Securing Microservices with Keycloak and Spring Cloud Gateway… Can somebody share their story, best practices and trick before starting. My goal is to validate every request in gateway and to pass it further to the mic…

---

## [CORS settings don't work](https://forum.keycloak.org/t/cors-settings-dont-work/2921)

<div class="topic-metadata">

**Author:** [@AAverin](https://forum.keycloak.org/u/AAverin)\
**Replies:** 6\
**Last updated:** [November 9, 2020, 11:09pm UTC](https://forum.keycloak.org/t/cors-settings-dont-work/2921 "2020-11-09T23:09:54Z")

</div>

I have a following setup JS React app (js-client) =\> Node JS Backend (api-client) =\> Keycloak auth server For js-client I have set Web Origins to +, so it would work with all valid redirect urls. api-client is Bearer …

---

## [Token exchange feature. GA date?](https://forum.keycloak.org/t/token-exchange-feature-ga-date/21939)

<div class="topic-metadata">

**Author:** [@ivanbishop](https://forum.keycloak.org/u/ivanbishop)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 3:12pm UTC](https://forum.keycloak.org/t/token-exchange-feature-ga-date/21939 "2023-05-14T15:12:07Z")

</div>

Hi, I’m using keycloak 21-1 and it needs to be in production mode. Is there an estimated date/release version when “token exhange” will be supported in production mode? Thanks Ivan P.S. looks like Is there plan to ad…

---

## [Disable Refresh Token for Service Accounts](https://forum.keycloak.org/t/disable-refresh-token-for-service-accounts/1255)

<div class="topic-metadata">

**Author:** [@justin.spies](https://forum.keycloak.org/u/justin.spies)\
**Replies:** 6\
**Last updated:** [May 13, 2022, 4:49am UTC](https://forum.keycloak.org/t/disable-refresh-token-for-service-accounts/1255 "2022-05-13T04:49:45Z")

</div>

We’d like to disable the inclusion of the refresh token in the authentication response when using the client\_credentials grant type for a service account. If I understand correctly there is a bit of conflict between the …

---

## [Keycloak JavaScript adapter redirects to 404 URL after login](https://forum.keycloak.org/t/keycloak-javascript-adapter-redirects-to-404-url-after-login/13480)

<div class="topic-metadata">

**Author:** [@straurob](https://forum.keycloak.org/u/straurob)\
**Replies:** 2\
**Last updated:** [April 3, 2023, 6:18am UTC](https://forum.keycloak.org/t/keycloak-javascript-adapter-redirects-to-404-url-after-login/13480 "2023-04-03T06:18:35Z")

</div>

I’m using the Keycloak JavaScript adapter (keycloak-js@16.1.1) to authenticate users in the frontend. (Quasar 2 with Vue 3 and Vue Router 4). Basically this works fine but I have some trouble with the login workflow. A…

---

## [.Net CORE + Keycloak by OIDC not work](https://forum.keycloak.org/t/net-core-keycloak-by-oidc-not-work/1873)

<div class="topic-metadata">

**Author:** [@Dudod](https://forum.keycloak.org/u/Dudod)\
**Replies:** 0\
**Last updated:** [March 29, 2020, 9:58pm UTC](https://forum.keycloak.org/t/net-core-keycloak-by-oidc-not-work/1873 "2020-03-29T21:58:09Z")

</div>

Hi all! I tried to create .Net Core 3.1 Web API witch used Keycloak authorization. I want to implement next scenario: Browser send some request to api. 1\*. If user isn’t authenticated, Api redirect to Keycloak login …

---

## [Connection Refused when accessing a protected resource inside docker](https://forum.keycloak.org/t/connection-refused-when-accessing-a-protected-resource-inside-docker/15394)

<div class="topic-metadata">

**Author:** [@salam](https://forum.keycloak.org/u/salam)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 6:14am UTC](https://forum.keycloak.org/t/connection-refused-when-accessing-a-protected-resource-inside-docker/15394 "2022-05-09T06:14:32Z")

</div>

Hi, I am trying to secure a spring boot application with keycloak and oauth2. I was able to secure the application when it wasn’t on docker and it works fine from intellij, i was able to access a protected resource. B…

---

## [How to lock/disable inactive account after period of time?](https://forum.keycloak.org/t/how-to-lock-disable-inactive-account-after-period-of-time/3879)

<div class="topic-metadata">

**Author:** [@nkhanhquoc](https://forum.keycloak.org/u/nkhanhquoc)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 2:50am UTC](https://forum.keycloak.org/t/how-to-lock-disable-inactive-account-after-period-of-time/3879 "2020-07-22T02:50:50Z")

</div>

We have a security rule for the application, that’s “system shall be able to automatically disabled / revoke accounts that have been unused / dormant for 90 days”. I searched gg how to do this for few days, but there is …

---

## [Automatic Login to Javascript Client Adapter with inital Access and Refresh Token](https://forum.keycloak.org/t/automatic-login-to-javascript-client-adapter-with-inital-access-and-refresh-token/1331)

<div class="topic-metadata">

**Author:** [@gitdode](https://forum.keycloak.org/u/gitdode)\
**Replies:** 6\
**Last updated:** [September 11, 2020, 11:39am UTC](https://forum.keycloak.org/t/automatic-login-to-javascript-client-adapter-with-inital-access-and-refresh-token/1331 "2020-09-11T11:39:43Z")

</div>

We have secured a webapp with the Javascript client adapter (8.0.2). Regular login with redirect to Keycloak’s login page (Authorization Code flow) works fine. Now we’d also like to be able to login automatically by pas…

---

## [Validated Audiences do not match Client Token](https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674)

<div class="topic-metadata">

**Author:** [@Keith3679](https://forum.keycloak.org/u/Keith3679)\
**Replies:** 1\
**Last updated:** [June 9, 2022, 8:25am UTC](https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674 "2022-06-09T08:25:02Z")

</div>

When I attempt to validate the token form Keycloak, I am receiving the following error: Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'master-real…

---

## [Brute Force Detection temporary lock user](https://forum.keycloak.org/t/brute-force-detection-temporary-lock-user/9598)

<div class="topic-metadata">

**Author:** [@Margarita](https://forum.keycloak.org/u/Margarita)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 2:02pm UTC](https://forum.keycloak.org/t/brute-force-detection-temporary-lock-user/9598 "2021-08-11T14:02:23Z")

</div>

Hello , i want to temporary (about 30 minutes) lock the user who failed to sign in 5 times . How can i achieve it? After changing Brute Force Detection configuration from Security Defenses it is not working properly …

---

## [Keycloak + Multi-tenancy + Spring Security configuration](https://forum.keycloak.org/t/keycloak-multi-tenancy-spring-security-configuration/2571)

<div class="topic-metadata">

**Author:** [@joshdcollins](https://forum.keycloak.org/u/joshdcollins)\
**Replies:** 3\
**Last updated:** [May 10, 2022, 3:36am UTC](https://forum.keycloak.org/t/keycloak-multi-tenancy-spring-security-configuration/2571 "2022-05-10T03:36:03Z")

</div>

Hi all, I’m attempting to use Keycloak to support multi-tenancy within a SpringBoot 2 application using Spring Security. I’m using org.keycloak keycloak-spring-boot-starter 9.0.0 org.springframework.boot spr…

---

## [Using Keycloak as the IDP for Spunk via SAML](https://forum.keycloak.org/t/using-keycloak-as-the-idp-for-spunk-via-saml/1583)

<div class="topic-metadata">

**Author:** [@Mitchell](https://forum.keycloak.org/u/Mitchell)\
**Replies:** 7\
**Last updated:** [March 19, 2026, 1:45pm UTC](https://forum.keycloak.org/t/using-keycloak-as-the-idp-for-spunk-via-saml/1583 "2026-03-19T13:45:33Z")

</div>

Does anyone have experience setting up Keycloak as the IDP for Spunk using Spunk’s SAML configuration?

---

## [Architecture ideas on multi-tenancy at customer permisses](https://forum.keycloak.org/t/architecture-ideas-on-multi-tenancy-at-customer-permisses/1807)

<div class="topic-metadata">

**Author:** [@joao-rebelo](https://forum.keycloak.org/u/joao-rebelo)\
**Replies:** 8\
**Last updated:** [June 18, 2022, 1:04pm UTC](https://forum.keycloak.org/t/architecture-ideas-on-multi-tenancy-at-customer-permisses/1807 "2022-06-18T13:04:29Z")

</div>

Hi, I’m trying to figure out the best approach for our current scenario: Our product is made of a Java client (which can and do embed a web browser), and some server applications (not entire monolith but almost) O…

---

## [Direct Grant prompt for OTP if configured](https://forum.keycloak.org/t/direct-grant-prompt-for-otp-if-configured/5340)

<div class="topic-metadata">

**Author:** [@richjyoung](https://forum.keycloak.org/u/richjyoung)\
**Replies:** 7\
**Last updated:** [November 18, 2020, 1:21pm UTC](https://forum.keycloak.org/t/direct-grant-prompt-for-otp-if-configured/5340 "2020-11-18T13:21:42Z")

</div>

Using the direct grant flow, if I submit the correct username and password and OTP is not configured for the user, then the flow is successful. If I submit the correct username and password but omit the OTP when this is…

[Next page](https://forum.keycloak.org/c/securing-applications/5.md?page=1&per_page=50)
