Developer Guides/Deprecated Guides/App Login/Web App Login/Login Process
# Overview
**Notice**：This version has been deprecated and is not recommended. Please refer to the new version [Overview of Login](https://open.larksuite.com/document/uAjLw4CM/ukTMukTMukTM/reference/authen-v1/login-overview)

The ability of Lark mobile application login is based on the [OAuth 2.0](https://oauth.net/2/) standard protocol, and is used to login to third-party applications through the Lark account.
**Update**: This interface request does not support the scope parameter. The user cannot grant explicit scope points to the application. The user_access_token is not bound to any scope. If you want to access a more standardized and compliant process, please use [New Login Overview](https://open.larksuite.com/document/uAjLw4CM/ukTMukTMukTM/reference/authen-v1/login-overview) to access the authorization process

## Get Started
Before using Lark mobile application login capability, firstly you need to read [Overview](https://open.larksuite.com/document/home/app-types-introduction/overview), then create an application in [Lark Open Platform Developer Background](https://open.larksuite.com/app) and obtain the ID and secret of the application.

Next, you need to select the `Security Settings` and add your callback page to get code into the `Redirect URLs`.

![image.png](//sf16-sg.larksuitecdn.com/obj/open-platform-opendoc-sg/9e1cdeeeed5ec788296b93ea3a039dbf_Et5T4JWP8M.png?height=757&lazyload=true&width=1347)

## Overall Process

![image.png](//sf16-sg.larksuitecdn.com/obj/open-platform-opendoc-sg/987ab6fe916500353ebd21c7e5bfb6fb_0y2IroWDrD.png?height=964&lazyload=true&width=1421)

### Step 1: Get code
App should build the url of Lark authorization service and redirect to it. After the user confirms the authorization request, the Lark authorization service will redirect to `redirect_uri` with the authorization code.

**Page Address** ：`https://passport.larksuite.com/suite/passport/oauth/authorize`

**Query String** ：

| Parameter         | Description           | Type        | Mandatory        |
| --------- | --------------- | -------   |  --------- |
|`client_id` | `app_id`, get from `Developer Console` - `Credentials & Basic Info` | `string` | Yes |
|`redirect_uri` | Authorization service will redirect to this uri after user confirms the authorization request | `string` | Yes |
|`response_type` | must be `code` | `string` | Yes |
|`state` | An additional string used to maintain the request and response status. This parameter will be appended to the callback when the permission has been granted. The app uses this string to determine the context | `string` | No |
**Link example:** ：
```
https://passport.larksuite.com/suite/passport/oauth/authorize?client_id=CLIENT_ID&redirect_uri=http%3A%2F%2F127.0.0.1%3A8888&response_type=code&state=state123456
```
---
If the app wants to put Lark qr code in it's web page instead of redirect to Lark authorization page, do as [QR SDK Documentation](https://open.larksuite.com/document/common-capabilities/sso/web-application-sso/qr-sdk-documentation).

### Step 2: Get access_token
[Api Docs: Get access_token](https://open.larksuite.com/document/common-capabilities/sso/api/get-access_token)

### Step 3: Get userinfo
[Api Docs: Get user info](https://open.larksuite.com/document/common-capabilities/sso/api/get-user-info)

### Step 3: Refresh expired access_token
[Api Docs: Refresh expired access_token](https://open.larksuite.com/document/common-capabilities/sso/api/refresh-access_token)