Infisign OAuth Management

Get the Access token and refresh token Auth API's for all the Magic Auth, OTP Auth, SSO, Social Auth, Conditonal Access Auth

Create token

Generate a secure authentication token for user access and session management.

SecuritybasicAuth or bearerAuth
Request
path Parameters
tenant_id
required
string

(Required)

Example: <string>
header Parameters
Content-Type
string
Example: application/json
Accept
string
Example: application/json
Request Body schema: application/json
object
Responses
200

OK

400

Bad Request

405

Method Not Allowed

post/unifed-auth-service/unifed/{tenant_id}/magic/auth/create/token/
Request samples
Response samples
application/json
{
  • "access_token": "<string>",
  • "refresh_token": "<string>",
  • "token_type": "<string>",
  • "expires_in": 0
}

Get Profile

Retrieve detailed information about a user's profile within the system.

SecuritybearerAuth
Request
path Parameters
tenant_id
required
string

(Required)

Example: <string>
header Parameters
Accept
string
Example: application/json
Responses
200

OK

400

Bad Request

405

Method Not Allowed

get/unifed-auth-service/unifed/{tenant_id}/magic/auth/user/profile/
Request samples
Response samples
application/json
{
  • "status": "<string>",
  • "message": "<string>",
  • "data": {
    }
}

Refresh token api

Obtain a new access token using a valid refresh token to maintain continuous authentication without re-entering credentials.

SecuritybearerAuth
Request
path Parameters
tenant_id
required
string

(Required)

Example: <string>
header Parameters
Accept
string
Example: application/json
Responses
200

OK

400

Bad Request

405

Method Not Allowed

get/unifed-auth-service/unifed/{tenant_id}/magic/auth/refresh/token/
Request samples
Response samples
application/json
{
  • "status": "<string>",
  • "message": "<string>",
  • "data": {
    }
}

Logout

End the current user session and securely exit the application.

SecuritybearerAuth
Request
path Parameters
tenant_id
required
string

(Required)

Example: <string>
header Parameters
Accept
string
Example: application/json
Responses
200

OK

400

Bad Request

405

Method Not Allowed

get/unifed-auth-service/unifed/{tenant_id}/magic/auth/logout/
Request samples
Response samples
application/json
{
  • "status": "<string>",
  • "message": "<string>",
  • "data": {
    }
}