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

[question][oauth2] grant_type password #270

Closed
sjeandeaux opened this issue Feb 19, 2018 · 0 comments
Closed

[question][oauth2] grant_type password #270

sjeandeaux opened this issue Feb 19, 2018 · 0 comments

Comments

@sjeandeaux
Copy link

Hi,

I would like to use the func https://github.com/golang/oauth2/blob/master/oauth2.go#L166 to authenticate with azure AD API.

Context:

  • azure ad
  • grant_type = password
  • parameters
  • username
  • password
  • resource this function does not allow this kind of parameter.

I would like to know the best way to do this.

The solutions:

  1. Modify or create another func with url.Values
  2. Add to configuration the url.Values as clientcredentials
  3. Create a package password ( add passwordcredentials client like clientcredentials #186 ) and add url.Values as [clientcredentials]
  4. Any better solution that you suggestion .

Thanks.

@sjeandeaux sjeandeaux changed the title [oauth2] grant_type password [question][oauth2] grant_type password Feb 19, 2018
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

1 participant