Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function configureOAuthProviderMicrosoft(): TnsOaProvider {
const microsoftProviderOptions: TnsOaProviderOptionsMicrosoft = {
openIdSupport: "oid-full",
clientId: "f376fa87-64a9-49a1-8b56-e0d48fc0810b",
// redirectUri: "urn:ietf:wg:oauth:2.0:oob",
redirectUri: "msalf376fa87-64a9-49a1-8b56-e0d48fc0810b://auth",
urlScheme: "msalf376fa87-64a9-49a1-8b56-e0d48fc0810b",
scopes: ["https://outlook.office.com/mail.read"]
};
const microsoftProvider = new TnsOaProviderMicrosoft(
microsoftProviderOptions
);
return microsoftProvider;
}
export function configureOAuthProviderMicrosoft(): TnsOaProvider {
const microsoftProviderOptions: TnsOaProviderOptionsMicrosoft = {
openIdSupport: "oid-full",
clientId: "f376fa87-64a9-49a1-8b56-e0d48fc0810b",
// redirectUri: "urn:ietf:wg:oauth:2.0:oob",
redirectUri: "msalf376fa87-64a9-49a1-8b56-e0d48fc0810b://auth",
urlScheme: "msalf376fa87-64a9-49a1-8b56-e0d48fc0810b",
scopes: ["openid", "https://outlook.office.com/mail.read"]
};
const microsoftProvider = new TnsOaProviderMicrosoft(
microsoftProviderOptions
);
return microsoftProvider;
}