Skip to content

Commit

Permalink
cmd: allow to set the client's post-logout URIs (#1427)
Browse files Browse the repository at this point in the history
Signed-off-by: Aritz Berasarte <raskasso@hotmail.com>
  • Loading branch information
aberasarte authored and aeneasr committed May 9, 2019
1 parent 5eeb162 commit 82963ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cli/handler_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (h *ClientHandler) CreateClient(cmd *cobra.Command, args []string) {
AllowedCORSOrigins: flagx.MustGetStringSlice(cmd, "allowed-cors-origins"),
SubjectType: flagx.MustGetString(cmd, "subject-type"),
Audience: flagx.MustGetStringSlice(cmd, "audience"),
PostLogoutRedirectUris: flagx.MustGetStringSlice(cmd, "post-logout-callbacks"),
}

response, err := m.Admin.CreateOAuth2Client(admin.NewCreateOAuth2ClientParams().WithBody(&cc))
Expand Down
1 change: 1 addition & 0 deletions cmd/clients_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func init() {
clientsCreateCmd.Flags().String("subject-type", "public", "A identifier algorithm. Valid values are \"public\" and \"pairwise\"")
clientsCreateCmd.Flags().String("secret", "", "Provide the client's secret")
clientsCreateCmd.Flags().StringP("name", "n", "", "The client's name")
clientsCreateCmd.Flags().StringSlice("post-logout-callbacks", []string{}, "List of allowed URLs to be redirected to after a logout")

// encrypt client secret options
clientsCreateCmd.Flags().String("pgp-key", "", "Base64 encoded PGP encryption key for encrypting client secret")
Expand Down

0 comments on commit 82963ad

Please sign in to comment.