spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.79k stars 5.9k forks source link

How to call oidc authenticate by postman? #10462

Closed rainbowechoes closed 2 years ago

rainbowechoes commented 2 years ago

I'm using KeyCloak as the authentication server and SpringCloud Gateway as the oauth2 client.

After I finish integrating the Gateway with the oauth2 client, when I access the backend RESTFul resource from the Gateway via the browser, it will redirect me to the KeyCloak login page. But I want to call an API via postman that can perform the OIDC authentication process when I add the required parameters for keycloak login to the API.

However, I don't know what this APIis, how it should be called, and whether oauth2 client provides this functionality?

jgrandja commented 2 years ago

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements.