Tag: OIDC
-
Howto: Swagger OIDC and Spring Boot 3
This small post will show you how to have an OIDC authentication on the Swagger interface of your Spring-Boot backend. The important part is, in the example the “client” used for the Swagger authent will be different than the client used for the “main” authent, that will allow you to turn of one authent channel…
-
Deploy Keycloak on Clever-Cloud
This blog post is a small how-to deploy a Keycloak server using Clever-Cloud. This post is a kind of extension/complement of the official Clever-Cloud blog post How to deploy Keycloak on Clever-Cloud ? I suggest you read it before continuing here. In order to run a keycloak on Clever-Cloud, you’ll have to: Download the Keycloak…
-
Spring-Boot 3 – register an OIDC token provider
Let say you have a Spring-Boot application and you need a token in order to authenticate/authorize a call made by your application targeting another app. Since Spring-Boot 3, and Spring 6, the spring-security packages handle the OIDC mechanism with built-in code. Also their is a common part in registration of OIDC provider used to authenticate/authorize…
-
Spring 6 – Oauthenticated http call
Let’s say you have a Spring backend app, and you need to make some http(s) call from that backend to any web-service you want without configuring a global WebClient. Doing that you’ll face three possibly to authenticate your http call: – forward the token of the current user; – get a new token to authenticate…
-
Spring Boot 3 – multitenant OIDC with Keycloak
Naturally Spring Security 3 allow you to do some kind of multi-tenant autentication, but you can’t use more than one OIDC tenant. Let say you are building a Spring Boot App with Spring-Boot 3.x.x and you use Keycloak as OpenID Connect provider, ans you need to validate some tokens from more than one OIDC tenant.…
-
Request a token from Keycloak
Here is few command lines that you can use to retrieve a token from a Keycloak server. Feel free to add some purpose in comment.