You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to your OAuth documentation, I should be able to call client.login_link() to generate the href for the Oauth redirect handler. However, the sever errors out with the following message:
After much fiddling, I've realized that perhaps the error is the result of the documentation that needs updating. A "more heavily commented example" provides a significantly different workflow which works perfectly.
If I am correct, I would be happy to contribute an updated documentation page. That said, a code update to align the flow with the documentation may be a better approach.
Note that when creating the client with the from_file(FILE_NAME) class method, everything work swimmingly.
Expected Behaviour
I would expect the client.login_link() to produce the redirect necessary to the oauth flow as described in the documentation walkthrough.
Note that while adding the redirect URI to the method call (i.e. login_link) generates a working link and successfully process the authentication flow, afterwards, the use of retr_id and retr_info both require the redirect URI as positional arguments unlike the the oauth walkthrough documentation, and here, adding the redirect URI fails.
Bug Description
According to your OAuth documentation, I should be able to call client.login_link() to generate the href for the Oauth redirect handler. However, the sever errors out with the following message:
TypeError: WebApplicationClient.login_link() missing 1 required positional argument: 'redirect_uri'
After much fiddling, I've realized that perhaps the error is the result of the documentation that needs updating. A "more heavily commented example" provides a significantly different workflow which works perfectly.
If I am correct, I would be happy to contribute an updated documentation page. That said, a code update to align the flow with the documentation may be a better approach.
Reproducible Example
Note that when creating the client with the
from_file(FILE_NAME)
class method, everything work swimmingly.Expected Behaviour
I would expect the client.login_link() to produce the redirect necessary to the oauth flow as described in the documentation walkthrough.
Note that while adding the redirect URI to the method call (i.e. login_link) generates a working link and successfully process the authentication flow, afterwards, the use of retr_id and retr_info both require the redirect URI as positional arguments unlike the the oauth walkthrough documentation, and here, adding the redirect URI fails.
Environment Information
Please provide the following version information:
Confirmation
Please confirm the following:
Additional context
Screenshots
The text was updated successfully, but these errors were encountered: