Using the OpenID Library of the Python Library

Can someone explain me the steps using the openid library which is mentioned here. I am importing the entire janrain openid package into my program, but I cannot understand the actual code stream.

The process should basically follow this plan:

Add an OpenID login field somewhere on your site. When OpenID is entered in this field and the form is submitted, it should make a request to your site, which includes this OpenID URL.

First, the application must create a consumer instance with a session for the state of each user and save for the general state. using stock of choice.

Then, the application should call the begin method on the Consumer instance. This method accepts an OpenID URL. The begin method returns an AuthRequest object.

Then, the application should call the redirectURL method on the AuthRequest object. The return_to parameter is the URL to which the OpenID server sends the user back after trying to verify his or her identity. The realm parameter is the URL (or URL pattern) that identifies your website to the user when he or she resolves it. Send the redirect to the received URL in the user's browser.

This is the first half of the authentication process. The second half of the process is performed after the OpenID Provider user sends the user’s browser a redirect to your site to complete their login.

, URL-, URL- return_to, redirectURL, . , URL- OpenID , .

, , , .

. , .

+3
1

web.py webopenid, , , OpenID, Janrain. host, OpenID . OpenID, / AX SReg.

0

Source: https://habr.com/ru/post/1729367/


All Articles