We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When attempting to authenticate with the Box API, user encounter a "redirect_uri_error". The exepected URL of the redirection is /complete/box/.
/complete/box/
The URL contains the redirect_state parameter while Box provider recognize the state parameter.
AUTHENTICATION_BACKENDS = ['social_core.backends.box.BoxOAuth2']
Set the REDIRECT_STATE parameter to False in the Box backend.
REDIRECT_STATE
False
class BoxOAuth2(BaseOAuth2): """Box.net OAuth authentication backend""" name = "box" AUTHORIZATION_URL = "https://www.box.com/api/oauth2/authorize" ACCESS_TOKEN_METHOD = "POST" ACCESS_TOKEN_URL = "https://www.box.com/api/oauth2/token" REVOKE_TOKEN_URL = "https://www.box.com/api/oauth2/revoke" SCOPE_SEPARATOR = "," REDIRECT_STATE = False EXTRA_DATA = [ ("refresh_token", "refresh_token", True), ("id", "id"), ("expires", "expires"), ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behaviour
When attempting to authenticate with the Box API, user encounter a "redirect_uri_error". The exepected URL of the redirection is
/complete/box/
.Actual behaviour
The URL contains the redirect_state parameter while Box provider recognize the state parameter.
What are the steps to reproduce this issue?
AUTHENTICATION_BACKENDS = ['social_core.backends.box.BoxOAuth2']
How to fix it ?
Set the
REDIRECT_STATE
parameter toFalse
in the Box backend.The text was updated successfully, but these errors were encountered: