A
A
Artyom2020-04-28 15:02:39
Python
Artyom, 2020-04-28 15:02:39

How to make an authorization on the site, through redirection to the ESIA (Government Services)?

The site can only be accessed through redirection to the ESIA (government services portal). That is, you are redirected to the authorization site

link
https://esia.gosuslugi.ru/idp/rlogin
, there you enter data and only then you are thrown to the main page of the site as an authorized user. How to implement it?
I have no problems with normal login:
def main():
    s = requests.Session()
    r = s.post('https://login.dnevnik.ru/login', data = {'login':'login', 'password':'pass'})
    r = s.get('https://dnevnik.ru/user')

But I got stuck with the redirect

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2020-04-28
@zenwalker

https://partners.gosuslugi.ru/catalog/esia

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question