keycloak / keycloak-quickstarts

Apache License 2.0
1.99k stars 984 forks source link

Spring boot sample with oauth2Login #475

Open atrifyllis opened 1 year ago

atrifyllis commented 1 year ago

Description

Wouldn't it be useful to have an example on how to combine policy enforcer with oauth2Login? The requirement is to be redirected in keycloak login page when attempting to access a protected resource. So far, for me it does not seem to be something trivial to implement

Discussion

No response

Motivation

No response

Details

No response

pedroigor commented 1 year ago

@atrifyllis Are you interested in contributing to it?

It should be very similar to https://github.com/keycloak/keycloak-quickstarts/tree/main/spring/rest-authz-resource-server, right?