Link to external service (eg. Microsoft) using oidc #36282
-
In our system we have an user entity defined with the usual informations attached (name, login, etc...). Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
/cc @pedroigor (oidc), @sberyozkin (oidc) |
Beta Was this translation helpful? Give feedback.
-
I think you need to use JAX-RS to redirect users to the endpoint like How it the current endpoint from where you need to initiate the code flow from is secured ? Is it also protected by If it is also secured by OIDC then you'll need to create 2 tenants: https://quarkus.io/guides/security-openid-connect-multitenancy#static-tenant-resolution, one would manage this endpoint's authentication, another one - the link process, lets say at If the first endpoint is basic auth then simply configure both basic and OIDC authentication but restrict https://quarkus.io/guides/security-authentication-mechanisms#path-specific-authentication-mechanisms
Does it help ? |
Beta Was this translation helpful? Give feedback.
-
@luca-bassoricci If you do need to control it manually, then the following test code might be of interest:
|
Beta Was this translation helpful? Give feedback.
@luca-bassoricci If you do need to control it manually, then the following test code might be of interest:
quarkus-oidc-client
to compete the flow in the callback method:https://github.com/quarkusio/quarkus/blob/main/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/UnprotectedResource.java#L50