Login Process Flow

Following are the service’s endpoints for login process

1. Authorize API

Endpoint

POST /api/v1/authorize

Description

Validates client credentials using a token provided in the header.

Workflow

  1. Call the API to validate the client using the deviceIdentity token in the header.

  2. Decision: Is the token valid?

    1. Yes: Return a loginChallenge and authToken.

    2. No: Throw an error.


authorize

post
Header parameters
AuthorizationstringRequired

Access Token

locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
authTokenstringOptional
clientIdstringOptional
codeChallengestringOptional
codeChallengeMethodstringOptional
loginVerifierstringOptional
scopestringOptional
statestringOptional
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/internetBanking/oauth/authorize

2. Generate Captcha API

Endpoint

GET /api/v1/captcha

Description

Generates a new captcha if no valid captcha exists or replaces the current captcha.

Workflow

  1. Call the API to generate a captcha with checkIdentity in the header.

  2. Decision: Is there a previously existing captcha?

  • Yes: Remove the existing captcha and generate an encoded captcha.

  • No: Throw an error.


3. Login Challenge API

Endpoint

POST /api/v1/login-challenge

Description

Validates user credentials and performs additional checks like captcha verification.

Workflow

  1. Call the API to validate the user credentials.

  2. Decision: Is the captcha valid?

    • Yes: Continue.

    • No: Throw an error.

  3. Decision: Are the credentials valid?

    • Yes: Continue.

    • No: Throw an error.

  4. Decision: Is an anomaly detected?

    • Yes: Initiate 2FA (Two-Factor Authentication).

    • No: Return a token and code.


acceptLoginChallenge

post
Header parameters
AuthorizationstringRequired

Access Token

eventIdstringOptional

event Id

locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
additionalAuthenticationstring · enumOptionalPossible values:
authTokenstringRequired

Encrypted String

Example: sfgjhgsf3hddfqwqesg3435qfa
loginChallengestringRequired

String

Example: hgsadfhj835gsdf7.nfh7867438fg7
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/internetBanking/oauth/acceptLoginChallenge

4. Pre-Login Verify API

Endpoint

POST /api/v1/pre-login-verify

Description

Validates the OTP (One-Time Password) provided by the user.

Workflow

  1. Call the API to validate the OTP.

  2. Decision: Is the OTP valid?

    • Yes: Generate and return a token.

    • No: Throw an error.


mfa email otp resend

post
Header parameters
AuthorizationstringRequired

Access Token

eventIdstringOptional

event Id

locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
consentOtpstringRequired
mfaChallengestringRequired
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/auth/mfa/prelogin/verify

5. Access Token API

Endpoint

POST /api/v1/access-token

Description

Generates an access and refresh token after validating user credentials.

Workflow

  1. Call the API to validate user credentials.

  2. Decision: Does the session exist?

    • Yes: Proceed.

    • No: Throw an error.

  3. Decision: Are the token details valid?

    • Yes: Save the session.

    • No: Throw an error.

  4. Decision: Is the session saved successfully?

    • Yes: Generate access and refresh tokens.

    • No: Throw an error.


accessToken

post
Header parameters
AuthorizationstringRequired

Access Token

eventIdstringOptional

event Id

locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
clientIdstringOptional
codestringOptional
codeVerifierstringOptional
grantTypestringOptional
redirectUristringOptional
scopestringOptional
statestringOptional
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/internetBanking/oauth/accessToken

6. Revoke Token API

Endpoint

POST /api/v1/revoke-token

Description

Revokes an existing access and refresh token using the sessionId.

Workflow

  1. Call the API to revoke access and refresh tokens.

  2. Decision: Does the session exist?

    • Yes: Continue.

    • No: Throw an error.

  3. Decision: Is the session removed successfully?

    • Yes: Return a success response.

    • No: Throw an error.


revoke access token

post
Header parameters
AuthorizationstringRequired

Access Token

locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
clientIdstringOptional
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/internetBanking/oauth/revoke

7. Refresh Token API

Endpoint

POST /api/v1/refresh-token

Description

Renews the access and refresh tokens for an existing session.

Workflow

  1. Call the API to renew the tokens.

  2. Decision: Does the session exist?

    • Yes: Proceed.

    • No: Throw an error.

  3. Decision: Is the session valid?

    • Yes: Renew and return the access and refresh tokens.

    • No: Throw an error.


get access token from Refresh token for Ib

post
Header parameters
locLatitudestringOptional

Latitude location

locLongitudestringOptional

Longitude location

Body
clientIdstringOptional
codestringOptional
codeVerifierstringOptional
grantTypestringOptional
loginstringOptional
redirectUristringOptional
refreshTokenstringOptional
scopestringOptional
statestringOptional
Responses
chevron-right
200

Success|Ok

*/*
post
/ciamauthsrvc/internetBanking/oauth/accessToken/refresh

Last updated