---
schema_version: "1"
id: 7dbe877142647ed9dc969015fe7956def15ef41d2681878082869f1e9954a1fc
title: "Alternative method: login-based authorization"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-alternative-methodlogin-based-authorization.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-alternative-methodlogin-based-authorization.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 31d4c7c5b5811771bdff6961e38b74e0b8f975f9df11dcf79c075e0cb42db6f3
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Alternative method: login-based authorization

This method requires specific permissions for the user validating the connected app. It may fail in some cases where the permissions are restrictive, thus we recommend the preferred method above.

1.  From the Connected Application in the section "API (Enable OAuth Settings)", retrieve the “Consumer Key” and “Callback URL”

    - YOUR_CLIENT_ID : Consumer Key

    - YOUR REDIRECT_URL : Callback URL

2.  Depending on where to use the connected app, build a URL based on one of the following:

    - If the connected app is in the Sandbox/Test salesforce domain:

      ```nolang
      https://test.salesforce.com/services/oauth2/authorize?response_type=token&client_id=<YOUR_CLIENT_ID>&redirect_uri=<YOUR_REDIRECT_URL>
      ```

    - If using the standard salesforce domain:

      ```nolang
      https://login.salesforce.com/services/oauth2/authorize?response_type=token&client_id=<YOUR_CLIENT_ID>&redirect_uri=<YOUR_REDIRECT_URL>
      ```

      ![DCG Connected App Setup - Login based authorization](https://developer.salesforce.com/docs/media/dcg_4.png)

      After the URL is built, open it in your browser. The link redirects to the Salesforce login page. Log in using the Salesforce username and password which will authorize the access.
