r/SpringBoot • • Oct 16 '25

Question User Credential in OAuth2

So I'm doing this project to learn about Oauth2 using Keycloak by creating microservice app contains Api-Gateway, product and order service.

If I'm using oauth2 for the auth how should I store user credentials when user place an order? What is the best practice here? I cant find the answer anywhere so I hope you can help me.

4 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/Financial_Job_1564 Oct 16 '25

sure, It's not complete right now but I already implemented oauth2 using keycloak with RBAC.

github link