Skip to content

Allow custom parameter for password flow #158

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

Closed
abforman opened this issue Nov 13, 2017 · 3 comments
Closed

Allow custom parameter for password flow #158

abforman opened this issue Nov 13, 2017 · 3 comments

Comments

@abforman
Copy link

While hooking up an Angular2 app to Azure Active Directory, I hit a error where I was told that 'resource' is a required field after calling this.oauthService.fetchTokenUsingPasswordFlowAndLoadUserProfile().

AADSTS90014: The request body must contain the following parameter: 'resource'

From my javascript debugger, if I force-fed that query parameter in at oauth-service.ts:544, it would then process correctly.

The parameters in the token request don't include 'resource', so it would be good to include it, if it is set/available.

@manfredsteyer
Copy link
Owner

In the next version that lands in a few days, you can set this parameter in the config in the property customQueryParams:

config.customQueryParams = {
   resource: 'xyz'
}

@abforman
Copy link
Author

Awesome; thank you Manfred!

@manfredsteyer manfredsteyer changed the title Error during password flow token request against Azure AD Allow custom parameter for password flow Nov 18, 2017
@arruda1985
Copy link

@manfredsteyer how can i recover this values after login?

i can't find this parameters at onTokenReceived...

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

No branches or pull requests

3 participants