Skip to content
New issue

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

not redirecting on login #627

Open
hassanali1337 opened this issue Jul 31, 2018 · 4 comments
Open

not redirecting on login #627

hassanali1337 opened this issue Jul 31, 2018 · 4 comments

Comments

@hassanali1337
Copy link

hassanali1337 commented Jul 31, 2018

i am using custom backend model and when ever i login for ?next=/o/application/
it will redirect me back to ?next=/o/application after login and /o/application/ remains same
what should i do here i think authentication is not working .

@thattejada
Copy link

And what does the console inspector show, any error? do you have a valid redirect url on the OAuth provider?

@hassanali1337
Copy link
Author

hassanali1337 commented Jul 31, 2018

there no error login works fine with my authbackend but when i login it redirect me back to login instead of taking me to/o/applications
My url:
url(r'^o/', include('oauth2_provider.urls', namespace='oauth2_provider')), url(r'^oauthserver/login', auth_views.login, {'template_name': 'API/templates/login.html'}, name='login'),
my Backend

AUTHENTICATION_BACKENDS = (
    'oauth2_provider.backends.OAuth2Backend',
    'API.auth_backends.UserModelBackend',
)

thats all i am using

@thattejada
Copy link

Check out the configuration applied when creating a client, as shown here, specially the redirect URI

@hassanali1337
Copy link
Author

hassanali1337 commented Aug 2, 2018

no no . i am not able to access the oauthserver panel with my custom backend it just log me in and then redirect me back to the login .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants