Skip to content
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: add token_endpoint_auth_signing_alg to cli #3148

Merged
merged 2 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}