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

Azure Active Directory: Updating default auth request for acquireTokenSilent #1703

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Azure Active Directory: Updating default auth request for acquireTokenSilent #1703

merged 1 commit into from
Feb 1, 2021

Conversation

jeliasson
Copy link
Contributor

@jeliasson jeliasson commented Jan 31, 2021

PR updates Azure Active Directory default AuthRequest's scopes when trying to silently acquire a token

Related docs

See resolved discussions
https://github.com/redwoodjs/redwoodjs.com/pull/534

@github-actions
Copy link

@Tobbe
Copy link
Member

Tobbe commented Jan 31, 2021

This looks good to me 👍

@Tobbe Tobbe merged commit 44d234b into redwoodjs:main Feb 1, 2021
@Tobbe
Copy link
Member

Tobbe commented Feb 1, 2021

No behavior changes here, just internal clarification. So nothing for the changelog.

@jeliasson jeliasson deleted the fix/azure-active-directory-default-auth-request branch February 1, 2021 09:35
@thedavidprice thedavidprice added this to the next release milestone Feb 1, 2021
@@ -16,8 +16,8 @@ export const azureActiveDirectory = (
logout: (options?) => client.logout(options),
signup: async (options?) => await client.loginPopup(options),
getToken: async (options?: any) => {
const renewIdTokenRequest = options || {
scopes: [process.env.AZURE_ACTIVE_DIRECTORY_CLIENT_ID],
const authRequest = options || {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jeliasson I see that getToken is being executed from the AuthProvider.tsx without the option to pass any arguments to it, may I know how do I pass in the options argument for the getToken function from my Redwood app? Thank you 🙏

image

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

Successfully merging this pull request may close these issues.

None yet

5 participants