Skip to content

Commit

Permalink
feat: add token_endpoint_auth_signing_alg to cli (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored Jun 14, 2022
1 parent 5a75323 commit ed6eb30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cli/handler_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (h *ClientHandler) CreateClient(cmd *cobra.Command, args []string) {
BackchannelLogoutURI: flagx.MustGetString(cmd, "backchannel-logout-callback"),
FrontchannelLogoutSessionRequired: flagx.MustGetBool(cmd, "frontchannel-logout-session-required"),
FrontchannelLogoutURI: flagx.MustGetString(cmd, "frontchannel-logout-callback"),
TokenEndpointAuthSigningAlg: flagx.MustGetString(cmd, "token-endpoint-auth-signing-alg"),
}

response, err := m.Admin.CreateOAuth2Client(admin.NewCreateOAuth2ClientParams().WithBody(&cc))
Expand Down Expand Up @@ -188,6 +189,7 @@ func (h *ClientHandler) UpdateClient(cmd *cobra.Command, args []string) {
BackchannelLogoutURI: flagx.MustGetString(cmd, "backchannel-logout-callback"),
FrontchannelLogoutSessionRequired: flagx.MustGetBool(cmd, "frontchannel-logout-session-required"),
FrontchannelLogoutURI: flagx.MustGetString(cmd, "frontchannel-logout-callback"),
TokenEndpointAuthSigningAlg: flagx.MustGetString(cmd, "token-endpoint-auth-signing-alg"),
}

response, err := m.Admin.UpdateOAuth2Client(admin.NewUpdateOAuth2ClientParams().WithID(id).WithBody(&cc))
Expand Down
3 changes: 3 additions & 0 deletions cmd/clients_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,8 @@ To encrypt auto generated client secret, use "--pgp-key", "--pgp-key-url" or "--
cmd.Flags().String("pgp-key-url", "", "PGP encryption key URL for encrypting client secret")
cmd.Flags().String("keybase", "", "Keybase username for encrypting client secret")

// authentication signing algorithm for the Token Endpoint
cmd.Flags().String("token-endpoint-auth-signing-alg", "", "Authentication signing algorithm for the Token Endpoint")

return cmd
}
3 changes: 3 additions & 0 deletions cmd/clients_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ To encrypt auto generated client secret, use "--pgp-key", "--pgp-key-url" or "--
cmd.Flags().String("pgp-key-url", "", "PGP encryption key URL for encrypting client secret")
cmd.Flags().String("keybase", "", "Keybase username for encrypting client secret")

// authentication signing algorithm for the Token Endpoint
cmd.Flags().String("token-endpoint-auth-signing-alg", "", "Authentication signing algorithm for the Token Endpoint")

return cmd
}

0 comments on commit ed6eb30

Please sign in to comment.