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

Proposal to add -provider and --provider-list options to simplify endpoint config #118

Open
tonymet opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@tonymet
Copy link

tonymet commented Nov 27, 2024

Thanks for the great tool . I appreciate the automatic endpoint configuration using .well-known/. We could further improve usability by adding a provider option e.g. oauth2c --provider microsoft or --provider google . Provider would load the endpoint configuration from Endpoint defintions found in the go module https://pkg.go.dev/golang.org/x/oauth2#section-directories .

Moreover , it would be a great contributor opportunity to add the full gamut of oauth providers .

If there's interest, I'm happy to start the initial PR

Example Run

Perform oauth code-based authentication using microsoft

> oauth2c --provider microsoft --client-id xxxx-xxxx --client-secret yyyyyy.yyy --scopes ...

List Available Providers

> oauth2c --provider-list
 Oauth2c provides endpoint configuration for the following providers:
facebook
google
instagram
microsoft
github
gitlab
fitbit
foursquare
heroku
hipchat
jira
kakao
linkedin
mailchimp
mailru
mediamath
nokiahealth
odnoklassniki
paypal
slack
spotify
stackoverflow
twitch
uber
vk
yahoo
yandex
@ikawalec
Copy link
Contributor

Hi @tonymet

That sounds like a great idea! Feel free to create a draft PR.

Thanks!

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