Skip to content

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

@tonymet

Description

@tonymet

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions