S
S
Sergey2020-07-08 10:38:07
Django
Sergey, 2020-07-08 10:38:07

Python. How to create your own Single Authentication + Application Authorization server?

Good day.
There was a need to create a single entry point to applications.
Two scenarios.
1. The authentication server checks the existence of the client and issues a token with which the client will access the application. The jwt token contains the user's powers and each client trusts them. Two problems: how to revoke the token. 2. How to authorize a user on services with Django (DRF).
2. The authentication server issues a token, and each service on django accesses it to check the credentials for the issued token and the validity of the token.
(in general, in the future, it is necessary to understand not only in jang who is coming to us, but also from third-party services)
Googled a lot, but everywhere we are talking about using a third-party identity provider in the form of google, twitter, etc.
Tell me, please, about existing libraries, solutions, maybe even manuals with such information (server and client to it)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-07-08
@sergey-gornostaev

You misunderstand JWT. To check the token, you do not need to go anywhere. And you can't withdraw it.

L
Larisa .•º, 2020-07-08
@barolina

django-rest-framework-sso

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question