I have an app on DJango. In the login part I have implemented authentication with Microsoft using DJango allatuh. When I press the "sign in" button with microsoft, before redirecting to the microsof, it redirects me to a page where I have to press the "continue" button. I want to remove this second page so that it automatically redirects me to the microsoft page. I have this on my "settings.py" file:
SOCIALACCOUNT_PROVIDERS = {
'microsoft': {
'APP': {
'client_id': '',
'secret': '',
},
'SCOPE': ['User.Read'],
'AUTH_PARAMS': {
'prompt': 'select_account',
},
'INIT_PARAMS': {
'prompt': 'select_account',
},
'callback_url': 'https://myapp.test.com/accounts/microsoft/login/callback/',
},
}
ACCOUNT_EMAIL_VERIFICATION = 'None'
ACCOUNT_EMAIL_REQUIRED = False
I don't know what to change
You can use this code for bypass that confirmation page:
instead of: