mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-30 12:39:03 +01:00
Merge branch 'main' into feat/huma-api-docs
This commit is contained in:
@@ -23,6 +23,11 @@ type oidcClientIDInput struct {
|
||||
ID string `path:"id"`
|
||||
}
|
||||
|
||||
type oidcClientSecretInput struct {
|
||||
ID string `path:"id"`
|
||||
Body *dto.OidcClientSecretDto `required:"false"`
|
||||
}
|
||||
|
||||
type oidcClientListInput struct {
|
||||
utils.ListRequestOptions
|
||||
Search string `query:"search" required:"false"`
|
||||
@@ -294,8 +299,12 @@ func (oc *OidcController) updateClientHandler(ctx context.Context, input *oidcCl
|
||||
return mapOIDCClient(client)
|
||||
}
|
||||
|
||||
func (oc *OidcController) createClientSecretHandler(ctx context.Context, input *oidcClientIDInput) (*httpapi.BodyOutput[map[string]string], error) {
|
||||
secret, err := oc.oidcService.CreateClientSecret(ctx, input.ID)
|
||||
func (oc *OidcController) createClientSecretHandler(ctx context.Context, input *oidcClientSecretInput) (*httpapi.BodyOutput[map[string]string], error) {
|
||||
body := dto.OidcClientSecretDto{}
|
||||
if input.Body != nil {
|
||||
body = *input.Body
|
||||
}
|
||||
secret, err := oc.oidcService.CreateClientSecret(ctx, input.ID, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user