P
P
Pavel Talaiko2021-04-30 13:59:46
Java
Pavel Talaiko, 2021-04-30 13:59:46

Spring OAuth 2 through system userbase?

Hi, friend.

So the initial ones are:

Microservice architecture. spring gateway. Keycloak oauth 2. Everything works.

Managed user roles through Keycloak and each service knew the endpoint to receive a token with user data. Added converter JWT -> Principal. Everything is great.

The requirements have changed: now you need authorization through: GitHub, Microsoft and the system's own auth-service. It is clear how easy it is to connect.

Only as for all these people to control the rights from different systems.

That is, if a person comes in through github, then I would like to check that there is a user in the system with the given email and use the authorities and data inside the system, and not GitHub. That is, you need to store the user base inside the system.

How I want it to work as shown in the picture:

608be2d973ea1011059503.png

What tools do you know and what could you suggest?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question