Skip to main content
Identity & Access/ZIAM

ZiamPasswordLogin

Issues ZIAM OAuth/OIDC tokens. Supports password, refresh_token, and authorization_code grants. Frontend username/password login can omit scope; ZIAM defaults it to openid profile email.

POST/api/login/oauth/access_token

Operation ID

ZiamPasswordLogin

Since

1.0.0

Execution Mode

Synchronous

Auth Context

OAuth / OIDC

Auth Context

Use the OAuth grant credentials documented in the form parameters; an existing end-user Bearer token is not required.

Request Inputs

application/x-www-form-urlencoded

Form Parameters

  • grant_type
    StringRequired

    OAuth grant type. Use password for username/password login, refresh_token for renewal, or authorization_code for browser Authorization Code + PKCE.

    Example: password

  • username
    String

    Login name. Required when grant_type=password. admin uses the built-in admin identity; other users use the default ZIAM login domain unless a client_id is provided.

    Example: alice

  • password
    String

    User password. Required when grant_type=password.

    Example: password123

  • client_id
    String

    Application client id. Required for authorization_code; optional for password grant when using the default login client.

    Example: ziam-default-client

  • client_secret
    String

    Application client secret when the client is confidential.

    Example: ******

Responses

200 OK

Token response signed and stored by ZIAM.

Content-Type: application/json

Response body root type: object

OAuth/OIDC token response returned and signed by ZIAM.

  • access_token
    String

    Bearer access token used to call userinfo and ZIAM management APIs.

    Example: eyJ...

  • refresh_token
    String

    Refresh token used to obtain a new access token. ZIAM stores only the token hash and rotates refresh tokens on use.

    Example: eyJ...

  • id_token
    String

    OIDC ID token returned when scope contains openid.

    Example: eyJ...

  • token_type
    String

    OAuth token type.

    Example: Bearer

  • expires_in
    Long

    Access token lifetime in seconds.

    Example: 3600

    {"format":"int64"}

  • scope
    String

    Granted OAuth scopes.

    Example: openid profile email