---
title: Local auto-login stage
description: This stage is used to perform auto-login with IDM. The stage obtains the OAuth Login from state, and populates the user object (username and password) in state.
component: pingidm
version: 7.5
page_id: pingidm:self-service-reference:stages/stage-local-auto-login
canonical_url: https://docs.pingidentity.com/pingidm/7.5/self-service-reference/stages/stage-local-auto-login.html
keywords: ["JSON", "Configuration", "Authentication", "Self-Service", "User Self-Service"]
---

# Local auto-login stage

This stage is used to perform auto-login with IDM. The stage obtains the `OAuth Login` from `state`, and populates the `user` object (`username` and `password`) in `state`.

The stage adds the OAuth login to the `successAdditions` (with a value of `true`) and adds the `successURL` from its own configuration. If IDM can obtain all those details from `state`, it takes the user object, locates the `username` and `password`, and generates a `CREDENTIAL_JWT`. That JWT is then placed in the `successAdditions` parameter.

If IDM is unable to generate the `CREDENTIAL_JWT`, it generates an internal server error (500).

* Example configuration

  ```json
  {
      "name" : "localAutoLogin",
      "successUrl" : "",
      "identityUsernameField": "userName",
      "identityPasswordField": "password"
  }
  ```

* Dependencies

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

* Required Parameters

  * `successURL` - the URL to which an end user should be redirected following successful registration.

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

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