Add scope options for Azure OAuth provider
Added a new feature that checks for an Azure provider and accordingly sets the scope for OAuth authentication. With this addition, the scope for the Azure provider in the 'oauth-providers' module is explicitly set to 'email'.
This commit is contained in:
@@ -75,10 +75,18 @@ export function OauthProviders(props: {
|
||||
|
||||
const redirectTo = [origin, redirectPath].join('');
|
||||
|
||||
const scopesOpts =
|
||||
provider === 'azure'
|
||||
? {
|
||||
scopes: 'email',
|
||||
}
|
||||
: {};
|
||||
|
||||
const credentials = {
|
||||
provider,
|
||||
options: {
|
||||
redirectTo,
|
||||
...scopesOpts,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user