Python SDK: Sign in with Doorman

The methods of the Python client under Sign in with Doorman. The relying parties a developer registers, the sign-ins that wait for the owner's decision, and what the web app does for a browser on the way. Every operation answers 404 until the deployment switches sign-in on.

client.sign_in.clients.create

Python

client.sign_in.clients.create(body: models.CreateSignInClient) -> models.CreatedSignInClient

Sends signIn.clients.create: POST /v1/sign-in/clients

Register a relying party.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.delete

Python

client.sign_in.clients.delete(client_id: str) -> None

Sends signIn.clients.delete: DELETE /v1/sign-in/clients/{clientId}

Delete a relying party.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.get

Python

client.sign_in.clients.get(client_id: str) -> models.SignInClient

Sends signIn.clients.get: GET /v1/sign-in/clients/{clientId}

Read a relying party.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.list

Python

client.sign_in.clients.list() -> models.SignInClientList

Sends signIn.clients.list: GET /v1/sign-in/clients

List relying parties.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.rotate_secret

Python

client.sign_in.clients.rotate_secret(client_id: str) -> models.SignInClientSecret

Sends signIn.clients.rotateSecret: POST /v1/sign-in/clients/{clientId}/rotate-secret

Rotate a relying party's secret.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.update

Python

client.sign_in.clients.update(client_id: str, body: models.UpdateSignInClient) -> models.SignInClient

Sends signIn.clients.update: PATCH /v1/sign-in/clients/{clientId}

Update a relying party.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.clients.verify

Python

client.sign_in.clients.verify(client_id: str) -> models.SignInClient

Sends signIn.clients.verify: POST /v1/sign-in/clients/{clientId}/verify

Verify a relying party's host.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

Python

client.sign_in.links.open(body: models.SignInLinkRequest) -> models.SignInLinkOpened

Sends signIn.links.open: POST /sign-in/links/open

Open a sign-in link.

Access public: no credential. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

Python

client.sign_in.links.read(body: models.SignInLinkRequest) -> models.SignInLinkPreview

Sends signIn.links.read: POST /sign-in/links/read

Read a sign-in link.

Access public: no credential. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.requests.decide

Python

client.sign_in.requests.decide(request_id: str, body: models.DecideSignIn) -> models.SignInDecision

Sends signIn.requests.decide: POST /v1/sign-in/requests/{requestId}

Decide a sign-in.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.requests.get

Python

client.sign_in.requests.get(request_id: str) -> models.SignInApproval

Sends signIn.requests.get: GET /v1/sign-in/requests/{requestId}

Read a sign-in that waits for the owner.

Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

client.sign_in.requests.resume

Python

client.sign_in.requests.resume(body: models.ResumeSignIn) -> models.SignInResumed

Sends signIn.requests.resume: POST /sign-in/requests/resume

Resume a sign-in.

Access public: no credential. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.

Up Down to move, Enter to open, Esc to close