Skip to content

CognitoIdentityClient.get_open_id_token_for_developer_identity

rboto-cognito-identity==0.4.0 · Service index · Types

Model summary (excerpt): Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the "domain" by which Cognito will refer to your users....

Install and imports

python -m pip install "rboto[cognito-identity]==0.4.0"
from rboto import CognitoIdentityClient
from rboto_cognito_identity.types import (
    GetOpenIdTokenForDeveloperIdentityOutput,
)

Signature

async def get_open_id_token_for_developer_identity(
    *,
    identity_pool_id: str,
    logins: dict[str, str],
    identity_id: str | None = None,
    principal_tags: dict[str, str] | None = None,
    token_duration: int | None = None,
) -> GetOpenIdTokenForDeveloperIdentityOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
identity_pool_id Yes An identity pool ID in the format REGION:GUID.
logins Yes A set of optional name-value pairs that map provider names to provider tokens. Each name-value pair represents a user from a public provider or developer provider. If the user is from a developer provider, the name-value pair will follow the syntax "developer_provider_name": "developer_user_identifier" . The developer provider is the "domain" by which Cognito will refer to your users; you...
identity_id No A unique identifier in the format REGION:GUID.
principal_tags No Use this operation to configure attribute mappings for custom providers.
token_duration No The expiration time of the token, in seconds. You can specify a custom expiration time for the token so that you can cache it. If you don't provide an expiration time, the token is valid for 15 minutes. You can exchange the token with Amazon STS for temporary Amazon Web Services credentials, which are valid for a maximum of one hour. The maximum token duration you can set is 24 hours. You...

Output

GetOpenIdTokenForDeveloperIdentityOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
identity_id str | None Always present —
token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetOpenIdTokenForDeveloperIdentityOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cognito_identity.exceptions:

DeveloperUserAlreadyRegisteredError, InternalError, InvalidParameterError, NotAuthorizedError, ResourceConflictError, ResourceNotFoundError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model