-
Notifications
You must be signed in to change notification settings - Fork 111
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
APP-6997: Implement CreateOAuthApp CLI #4687
Conversation
cli/client.go
Outdated
enabledGrants := args.EnabledGrants | ||
|
||
clientAuthentication, err := clientAuthToProto(args.ClientAuthentication) | ||
func createOauthAppConfig(clientAuthentication, pkce, urlValidation, logoutURI string, |
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.
factored this into a separate function since updateOauthApp and createOauthApp both need to create an oauthAppConfig
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.
All LGTM - but holding off on approve because this is SDK's domain -
Thanks for the great work !!! 👍
cli/client.go
Outdated
enabledGrants := args.EnabledGrants | ||
|
||
clientAuthentication, err := clientAuthToProto(args.ClientAuthentication) | ||
func createOauthAppConfig(clientAuthentication, pkce, urlValidation, logoutURI string, |
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.
The term "create" almost feels overloaded here because we're using it as part of both the create/update OAuth app flows - maybe something a little more distinct so it's not confused with OAuth app creation ?
cli/client.go
Outdated
return err | ||
} | ||
|
||
printf(cCtx.App.Writer, "Successfully created OAuth app %s", args.ClientName) |
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.
I want us to display the client ID and client secret that are returned in the response type.
flags[oauthAppFlagClientAuthentication] = "required" | ||
flags[oauthAppFlagURLValidation] = "allow_wildcards" | ||
flags[oauthAppFlagPKCE] = "not_required" | ||
flags[oauthAppFlagOriginURIs] = []string{"https://woof.com/login", "https://arf.com/"} |
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.
🐶
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.
I'll let @maxhorowitz speak to some of the more implementation-y details, but from a CLI perspective this lgtm!
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.
Approved assuming you commit suggestions - thanks !
Co-authored-by: Max Horowitz <[email protected]>
Co-authored-by: Max Horowitz <[email protected]>
Co-authored-by: Max Horowitz <[email protected]>
add create oauth app command to the cli. usage text screenshot: