---
updatedAt: 2026-03-01T17:55:15.000Z
---

# Log in a user

```shell Shell
hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

curl -L -X POST "$hostname/oauth/auth_native_traditional" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=2csheqcahhrzwyrqdk3eats6rnmrkdxt' \
--data-urlencode 'flow=test-flow' \
--data-urlencode 'flow_version=20210406175001388696' \
--data-urlencode 'locale=en-US' \
--data-urlencode 'redirect_uri=https://techdocs.akamai.com/callback' \
--data-urlencode 'response_type=token' \
--data-urlencode 'form=signInForm' \
--data-urlencode 'signInEmailAddress=karim.nafir@example.com' \
--data-urlencode 'currentPassword=p@ssw0rd!'
```

```node Node
const hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

var request = require('request');
var options = {
  'method': 'POST',
  'url': hostname.concat("/oauth/auth_native_traditional"),
  'headers': {
    'Content-Type': 'application/x-www-form-urlencoded'
  },
  form: {
    'client_id': '2csheqcahhrzwyrqdk3eats6rnmrkdxt',
    'flow': 'test-flow',
    'flow_version': '20210406175001388696',
    'locale': 'en-US',
    'redirect_uri': 'https://techdocs.akamai.com/callback',
    'response_type': 'token',
    'form': 'signInForm',
    'signInEmailAddress': 'karim.nafir@example.com',
    'currentPassword': 'p@ssw0rd!'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python Python
hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

import requests

url = hostname + "/oauth/auth_native_traditional"

payload='client_id=2csheqcahhrzwyrqdk3eats6rnmrkdxt\
&flow=test-flow\
&flow_version=20210406175001388696\
&locale=en-US\
&redirect_uri=https%3A%2F%2Ftechdocs.akamai.com%2Fcallback\
&response_type=token\
&form=signInForm\
&signInEmailAddress=karim.nafir%40example.com\
&currentPassword=p%40ssw0rd!'
headers = {
  'Content-Type': 'application/x-www-form-urlencoded'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```json Response Example
{
	"capture_user": {
		"accountDataRequestTime": null,
		"accountDeleteRequestTime": null,
		"birthday": null,
		"clientId": null,
		"clients": [{
			"clientId": "34way7esasgyjsq99wu7emu6wtt82j8w",
			"firstLogin": "2022-09-30 13:02:19 +0000",
			"id": 20481,
			"lastLogin": "2022-09-30 13:02:19 +0000",
			"name": null
		}],
		"consents": {
			"marketing": {
				"clientId": null,
				"context": null,
				"granted": null,
				"type": null,
				"updated": null
			},
			"personalizedAds": {
				"clientId": null,
				"context": null,
				"granted": null,
				"type": null,
				"updated": null
			}
		},
		"created": "2022-04-12 20:22:06.361606 +0000",
		"sso_code": "32db57619d33a93c",
		"stat": "ok",
		"access_token": "e3ggbjdq8qckyxmf"
	}
}
```

# Get your Identity Cloud hostname

<!-- shell@1 -->
<!-- node@1 -->
<!-- python@1 -->

Your Identity Cloud hostname can be found on the **Manage Application** page in Console next to the label **Registration Domain(s)**.

# Configure the content type

<!-- shell@4 -->
<!-- node@8 -->
<!-- python@17 -->

Set the **Content-Type** header to **application/x-www-form-urlencoded**. This causes request data to be sent as a single URL encoded string.

# Configure the client ID

<!-- shell@5 -->
<!-- node@11 -->
<!-- python@7 -->

Unique identifier of the API client used for  authentication.

# Configure the flow

<!-- shell@6 -->
<!-- node@12 -->
<!-- python@8 -->

Name of the flow used for the login and registration experience.

# Configure the flow version

<!-- shell@7 -->
<!-- node@13 -->
<!-- python@9 -->

Version number of the flow. Note that you can't set the flow version to **HEAD**, a shorthand way of referring to the latest version of the flow.

# Configure the locale

<!-- shell@8 -->
<!-- node@14 -->
<!-- python@10 -->

ISO language code for the locale. See <a href="https://techdocs.akamai.com/identity-cloud/docs/hosted-login-supported-languages-and-locales-1" target="_blank">Supported languages</a> and locales for a list of ISO codes that can be used with the Identity Cloud.

# Configure the redirect URI

<!-- shell@9 -->
<!-- node@15 -->
<!-- python@11 -->

Required for legacy purposes and not used for any functionality in this call. However, the **redirect_uri** member needs to be included when calling this operation, and the value you enter needs to begin with **HTTP:** or **HTTPS:** . The value should match the URL and scheme of your website.

# Configure the response type

<!-- shell@10 -->
<!-- node@16 -->
<!-- python@12 -->

Specifies whether an access token, an authorization code, or both should be returned following a successful registration of authentication. This example requests an access token.

# Configure the sign-in form

<!-- shell@11 -->
<!-- node@17 -->
<!-- python@13 -->

Name of the form used for logging in to Identity Cloud. Use the <a href = "https://techdocs.akamai.com/identity-cloud-config/reference/get-forms" target="_blank">/forms</a> operation to return the names of all your forms.

# Provide the user's email address

<!-- shell@12 -->
<!-- node@18 -->
<!-- python@14 -->

Email address of the user being logged in.

# Provide the user's password

<!-- shell@13 -->
<!-- node@19 -->
<!-- python@15 -->

Password of the user being logged in. Typically the email address and password are supplied by the user as part of the login process.

# Call the API

<!-- shell@3 -->
<!-- node@22-25 -->
<!-- python@20 -->

Use the POST method to log the user in.

# Review the response



If successful, the operation returns all the attributes and attribute values found in the user profile (Note that only a subset of these values are shown in the sample response.) At the bottom of the response you'll also see the access token issued to the user.