-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: device auth #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint, and as discussed, you can add the jwt decode parsing to extract the tenant, otherwise
internal/auth/auth.go
Outdated
func (a *Authenticator) getDeviceCode(ctx context.Context) (*deviceCodeResponse, error) { | ||
data := url.Values{ | ||
"client_id": {clientID}, | ||
"scope": {"openid read:roles"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scope should be a const openid profile read:clients create:clients...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. Let's extend the scope needed as we add new operations.
I'll add the welcome message in this PR as well |
Add device Auth to the CLI
more context: https://auth0.slack.com/archives/C01KGNSRS4C/p1611331425054200
Screen.Recording.2021-01-22.at.15.52.53.mov