Hi
We’re using an OAuth authentication\identity provider and it’s working great apart from when the user is redirected back to Indico they are still prompted to verify their email address despite the trusted_email
configuration option being set to true. Can anyone tell me if I’m missing something?
'consumer_key': '123',
'consumer_secret': '456',
'request_token_params': {'scope': 'user:email'},
'base_url': 'https://api.github.com',
'request_token_url': None,
'access_token_method': 'POST',
'access_token_url': 'https://github.com/login/oauth/access_token',
'authorize_url': 'https://github.com/login/oauth/authorize'
}
# SSO
AUTH_PROVIDERS = {
'bisa': {
'type': 'oauth',
'title': 'BISA',
'oauth': _github_oauth_config
}
}
IDENTITY_PROVIDERS = {
'bisa': {
'type': 'oauth',
'oauth': _github_oauth_config,
'endpoint': '/user',
'identifier_field': 'id',
'trusted_email': True,
'mapping': {
'user_name': 'login',
'affiliation': 'company'
}
},
}```