Skip to content
Browse files

cmd: Add --allowed-cors-origins to `client create` (#1290)

This allows the creation of clients permitted to make CORS requests from
specific domains.

Signed-off-by: Josh Giles <>
  • Loading branch information...
jgiles authored and aeneasr committed Feb 28, 2019
1 parent f6db6d3 commit c174f96e6e8ab31aa362c7a5d32e5637984aab5b
Showing with 2 additions and 0 deletions.
  1. +1 −0 cmd/cli/handler_client.go
  2. +1 −0 cmd/clients_create.go
@@ -106,6 +106,7 @@ func (h *ClientHandler) CreateClient(cmd *cobra.Command, args []string) {
PolicyUri: flagx.MustGetString(cmd, "policy-uri"),
LogoUri: flagx.MustGetString(cmd, "logo-uri"),
ClientUri: flagx.MustGetString(cmd, "client-uri"),
AllowedCorsOrigins: flagx.MustGetStringSlice(cmd, "allowed-cors-origins"),
SubjectType: flagx.MustGetString(cmd, "subject-type"),
Audience: flagx.MustGetStringSlice(cmd, "audience"),
@@ -54,6 +54,7 @@ func init() {
clientsCreateCmd.Flags().String("tos-uri", "", "A URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client")
clientsCreateCmd.Flags().String("client-uri", "", "A URL string of a web page providing information about the client")
clientsCreateCmd.Flags().String("logo-uri", "", "A URL string that references a logo for the client")
clientsCreateCmd.Flags().StringSlice("allowed-cors-origins", []string{}, "The list of URLs allowed to make CORS requests. Requires CORS_ENABLED.")
clientsCreateCmd.Flags().String("subject-type", "public", "A URL string that references a logo for the client")
clientsCreateCmd.Flags().String("secret", "", "Provide the client's secret")
clientsCreateCmd.Flags().StringP("name", "n", "", "The client's name")

0 comments on commit c174f96

Please sign in to comment.
You can’t perform that action at this time.