From 7f4fe5e16bfc528a572897439788c95510ccbc0b Mon Sep 17 00:00:00 2001 From: sawadashota Date: Wed, 2 Mar 2022 18:31:59 +0900 Subject: [PATCH] fix(sdk): add webauth and lookup_secret to identityCredentialsType (#2276) Signed-off-by: sawadashota --- .schema/openapi/patches/identity.yaml | 2 ++ internal/httpclient/api/openapi.yaml | 2 ++ internal/httpclient/docs/IdentityCredentialsType.md | 4 ++++ internal/httpclient/model_identity_credentials_type.go | 10 ++++++---- spec/api.json | 4 +++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.schema/openapi/patches/identity.yaml b/.schema/openapi/patches/identity.yaml index 7e72a867de16..6c035e5c86bf 100644 --- a/.schema/openapi/patches/identity.yaml +++ b/.schema/openapi/patches/identity.yaml @@ -9,3 +9,5 @@ - password - totp - oidc + - webauthn + - lookup_secret diff --git a/internal/httpclient/api/openapi.yaml b/internal/httpclient/api/openapi.yaml index 5ef8f6d4f3ab..bc512b6ae0b2 100644 --- a/internal/httpclient/api/openapi.yaml +++ b/internal/httpclient/api/openapi.yaml @@ -3060,6 +3060,8 @@ components: - password - totp - oidc + - webauthn + - lookup_secret title: CredentialsType represents several different credential types, like password credentials, passwordless credentials, type: string diff --git a/internal/httpclient/docs/IdentityCredentialsType.md b/internal/httpclient/docs/IdentityCredentialsType.md index f6bf73948cdd..5921260a1482 100644 --- a/internal/httpclient/docs/IdentityCredentialsType.md +++ b/internal/httpclient/docs/IdentityCredentialsType.md @@ -9,6 +9,10 @@ * `OIDC` (value: `"oidc"`) +* `WEBAUTHN` (value: `"webauthn"`) + +* `LOOKUP_SECRET` (value: `"lookup_secret"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/httpclient/model_identity_credentials_type.go b/internal/httpclient/model_identity_credentials_type.go index bffe60c2e9b3..cb5bfa0c6554 100644 --- a/internal/httpclient/model_identity_credentials_type.go +++ b/internal/httpclient/model_identity_credentials_type.go @@ -21,9 +21,11 @@ type IdentityCredentialsType string // List of identityCredentialsType const ( - IDENTITYCREDENTIALSTYPE_PASSWORD IdentityCredentialsType = "password" - IDENTITYCREDENTIALSTYPE_TOTP IdentityCredentialsType = "totp" - IDENTITYCREDENTIALSTYPE_OIDC IdentityCredentialsType = "oidc" + IDENTITYCREDENTIALSTYPE_PASSWORD IdentityCredentialsType = "password" + IDENTITYCREDENTIALSTYPE_TOTP IdentityCredentialsType = "totp" + IDENTITYCREDENTIALSTYPE_OIDC IdentityCredentialsType = "oidc" + IDENTITYCREDENTIALSTYPE_WEBAUTHN IdentityCredentialsType = "webauthn" + IDENTITYCREDENTIALSTYPE_LOOKUP_SECRET IdentityCredentialsType = "lookup_secret" ) func (v *IdentityCredentialsType) UnmarshalJSON(src []byte) error { @@ -33,7 +35,7 @@ func (v *IdentityCredentialsType) UnmarshalJSON(src []byte) error { return err } enumTypeValue := IdentityCredentialsType(value) - for _, existing := range []IdentityCredentialsType{"password", "totp", "oidc"} { + for _, existing := range []IdentityCredentialsType{"password", "totp", "oidc", "webauthn", "lookup_secret"} { if existing == enumTypeValue { *v = enumTypeValue return nil diff --git a/spec/api.json b/spec/api.json index 2b2e9c16b1bd..730fed24b077 100755 --- a/spec/api.json +++ b/spec/api.json @@ -476,7 +476,9 @@ "enum": [ "password", "totp", - "oidc" + "oidc", + "webauthn", + "lookup_secret" ], "title": "CredentialsType represents several different credential types, like password credentials, passwordless credentials,", "type": "string"