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

microsoft.cfc buildRedirectToAuthURL accepts all parameters #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erobertson42
Copy link

I had the need to pass in extra parameters for the authorization (as opposed to just scope). Instead of adding them individually, I figured it would be more beneficial to just refactor the method to accept all possible parameters.

Example:

strURL = msAuth.buildRedirectToAuthURL({
	"scope": "User.Read openid profile email",
	"response_mode": "form_post",
	"state": serializeJSON({"foo": "bar"})
});

More info on valid parameters:
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code

(Please excuse the previous pull request.)

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

Successfully merging this pull request may close these issues.

1 participant