Comments on: Spring Cloud Gateway OAuth2 with Keycloak https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/ Java, Spring, Kotlin, microservices, Kubernetes, containers Fri, 01 Mar 2024 15:17:26 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2338 Fri, 01 Mar 2024 15:17:26 +0000 https://piotrminkowski.com/?p=8950#comment-2338 In reply to Predrag.

Yes, it can

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2337 Fri, 01 Mar 2024 15:17:08 +0000 https://piotrminkowski.com/?p=8950#comment-2337 In reply to Eric.

Weel, we can send JWT token in Authorization header as a bearer token

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2336 Fri, 01 Mar 2024 15:11:13 +0000 https://piotrminkowski.com/?p=8950#comment-2336 In reply to vikasdevelopermenon.

Well, you can obtain a token directly from keycloak with the following command and then use it as abearer token:
“`
curl -X POST http://localhost:8080/realms/demo/protocol/openid-connect/token \
-d “grant_type=password” \
-d “client_id=spring-with-test-scope” \
-d “client_secret=IWLSnakHG8aNTWNaWuSj0a11UY4lzxd9” \
-d “username=spring” \
-d “password=Spring_123”
“`

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2330 Fri, 01 Mar 2024 09:08:09 +0000 https://piotrminkowski.com/?p=8950#comment-2330 In reply to Sujith G.

Yes, see here: https://piotrminkowski.com/2024/03/01/microservices-with-spring-cloud-gateway-oauth2-and-keycloak/

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2329 Fri, 01 Mar 2024 09:07:57 +0000 https://piotrminkowski.com/?p=8950#comment-2329 In reply to Panikiran.

The latest article shows such a situation: https://piotrminkowski.com/2024/03/01/microservices-with-spring-cloud-gateway-oauth2-and-keycloak/

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2328 Fri, 01 Mar 2024 09:06:51 +0000 https://piotrminkowski.com/?p=8950#comment-2328 In reply to Anto Bernad.

Yes, here is the latest article that shows how: https://piotrminkowski.com/2024/03/01/microservices-with-spring-cloud-gateway-oauth2-and-keycloak/

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2327 Fri, 01 Mar 2024 09:06:12 +0000 https://piotrminkowski.com/?p=8950#comment-2327 In reply to Eric.

Should it redirect the user in that case?

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2326 Fri, 01 Mar 2024 09:05:30 +0000 https://piotrminkowski.com/?p=8950#comment-2326 In reply to sam.

See here: https://piotrminkowski.com/2024/03/01/microservices-with-spring-cloud-gateway-oauth2-and-keycloak/

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2325 Fri, 01 Mar 2024 09:05:12 +0000 https://piotrminkowski.com/?p=8950#comment-2325 In reply to Eric Bu.

Yes. The latest article should clarify that: https://piotrminkowski.com/2024/03/01/microservices-with-spring-cloud-gateway-oauth2-and-keycloak/

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/10/09/spring-cloud-gateway-oauth2-with-keycloak/#comment-2323 Fri, 01 Mar 2024 08:29:57 +0000 https://piotrminkowski.com/?p=8950#comment-2323 In reply to Suraj Kalloli.

Strange. How do you run keycloak?

]]>