---
title: "Get OAuth2 log in processing URL (getLoginProcessingUrl)"
method: GET
path: "/api/oauth2/loginProcessingUrl"
tags: ["o-auth-2-controller"]
---

# Get OAuth2 log in processing URL (getLoginProcessingUrl)

`GET /api/oauth2/loginProcessingUrl`

Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider, it makes a redirect to this path so that the platform can do further log in processing. This URL may be configured as 'security.oauth2.loginProcessingUrl' property in yml configuration file, or as 'SECURITY_OAUTH2_LOGIN_PROCESSING_URL' env variable. By default it is '/login/oauth2/code/'

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

## Response `200`

OK

- string

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
