---
title: OpenAM auto-login stage
description: This stage is used to perform auto-login when IDM is configured with PingAM (AM). The stage is similar to the local auto-login stage, but also requires the returnParams stored in state (populated in the Parameters stage).
component: pingidm
version: 7.5
page_id: pingidm:self-service-reference:stages/stage-am-auto-login
canonical_url: https://docs.pingidentity.com/pingidm/7.5/self-service-reference/stages/stage-am-auto-login.html
keywords: ["JSON", "Configuration", "Authentication", "Self-Service", "User Self-Service"]
---

# OpenAM auto-login stage

This stage is used to perform auto-login when IDM is configured with PingAM (AM). The stage is similar to the local auto-login stage, but also requires the `returnParams` stored in `state` (populated in the [Parameters stage](stage-parameters.html)).

* Example configuration

  ```json
  {
      "name" : "openAmAutoLogin",
      "identityUsernameField": "userName",
      "identityPasswordField": "password",
      "openAMBaseUrl" : "http://AM.example.com:8080/openam/",
      "authenticationEndpoint" : "json/realms/root/authenticate"
  }
  ```

* Dependencies

  This stage should appear towards the end of a process—it cannot be the first stage in a process.

* Required Parameters

  * `authenticationEndpoint` - the AM Authentication Endpoint URL.

  * `openAMBaseUrl` - the URL of the AM server.

  * `identityUsernameField` - the managed object property that contains the username.

  * `identityPasswordField` - the managed object property that contains the user password.
