Skip to content

Commit b0ed88e

Browse files
authored
ENG-3831 - Add missing client method lookups and test harness (#1244)
Problem: 1. We were missing tenantId on lookupIdentityProvider 2. We were missing deleteWebAuthnCredentialsByUser Solution: 1. Add lookupIdentityProviderByTenantId to go with lookupIdentityProvider 2. Add a new deleteWebAuthnCredentialsForUser to go with deleteWebAuthnCredentials 3. Surface some PMVC route printing code to deterministically get all of our routes and action classes. 4. Add an AI written test that looks for missing parameters.
1 parent a3121be commit b0ed88e

1 file changed

Lines changed: 32 additions & 4 deletions

File tree

openapi.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13101,16 +13101,26 @@ paths:
1310113101
"$ref": "#/components/schemas/Errors"
1310213102
"/api/identity-provider/lookup":
1310313103
get:
13104-
description: Retrieves the identity provider for the given domain. A 200 response
13105-
code indicates the domain is managed by a registered identity provider. A
13106-
404 indicates the domain is not managed.
13107-
operationId: lookupIdentityProviderWithId
13104+
description: Retrieves the identity provider for the given domain and tenantId.
13105+
A 200 response code indicates the domain is managed by a registered identity
13106+
provider. A 404 indicates the domain is not managed. OR Retrieves any global
13107+
identity providers for the given domain. A 200 response code indicates the
13108+
domain is managed by a registered identity provider. A 404 indicates the domain
13109+
is not managed.
13110+
operationId: retrieveIdentityProviderLookup
1310813111
parameters:
1310913112
- name: domain
1311013113
in: query
1311113114
schema:
1311213115
type: string
1311313116
description: The domain or email address to lookup.
13117+
- name: tenantId
13118+
in: query
13119+
schema:
13120+
type: string
13121+
description: If provided, the API searches for an identity provider scoped
13122+
to the corresponding tenant that manages the requested domain. If no result
13123+
is found, the API then searches for global identity providers.
1311413124
responses:
1311513125
'200':
1311613126
description: Success
@@ -18196,6 +18206,24 @@ paths:
1819618206
schema:
1819718207
"$ref": "#/components/schemas/Errors"
1819818208
"/api/webauthn":
18209+
delete:
18210+
description: Deletes all of the WebAuthn credentials for the given User Id.
18211+
operationId: deleteWebAuthnCredentialsForUserWithId
18212+
parameters:
18213+
- name: userId
18214+
in: query
18215+
schema:
18216+
type: string
18217+
description: The unique Id of the User to delete WebAuthn passkeys for.
18218+
responses:
18219+
'200':
18220+
description: Success
18221+
default:
18222+
description: Error
18223+
content:
18224+
application/json:
18225+
schema:
18226+
"$ref": "#/components/schemas/Errors"
1819918227
get:
1820018228
description: Retrieves all WebAuthn credentials for the given user.
1820118229
operationId: retrieveWebAuthnCredentialsForUserWithId

0 commit comments

Comments
 (0)