M
M
Mikkkch2020-11-06 19:02:07
API
Mikkkch, 2020-11-06 19:02:07

How to fasten sessions through cookies in FastAPI?

Hello, using FastAPI, I am writing a piece of service responsible for the user system.
It so happened that the requirements of the project are that registration and authorization are carried out through the frontend, and not through the swagger.

The user registers, he is redirected to the login page, after which he, having logged into his profile, can get his key and make requests in the appropriate section.

Please tell me if there are good implementation options through the standard fastapi or any libraries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-11-06
@Mikkkch

The problem is not clear, well, you got the key, well, put it in the cookie, and read this cookie in FastAPI.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question