# Setting up Auth0 for Salesforce Authentication

**URL:** <https://community.auth0.com/t/setting-up-auth0-for-salesforce-authentication/8620>\
**Category:** Get Help\
**Tags:** salesforce, salesforce-api-deleg, salesforce-connectio, sign-up, authentication\
**Created:** [October 30, 2017, 2:04pm UTC](https://community.auth0.com/t/setting-up-auth0-for-salesforce-authentication/8620 "2017-10-30T14:04:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reachnathan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@reachnathan](https://community.auth0.com/u/reachnathan)\
**Post date:** [October 30, 2017, 2:04pm UTC](https://community.auth0.com/t/setting-up-auth0-for-salesforce-authentication/8620/1 "2017-10-30T14:04:55Z")

</div>

I’m building a hybrid app using Ionic2 and intend to use Salesforce as the backend. I looked at Auth0 for authentication through Salesforce API. I followed the URL: [Auth0 Documentation - Auth0 Docs](https://auth0.com/authenticate/ionic2/salesforce-api/)

There are few parameters given there that I need help to understand:  
const auth0Config = {  
// needed for auth0  
clientID: ‘YOUR\_CLIENT\_ID’,

```
  // needed for auth0cordova
  clientId: 'YOUR_CLIENT_ID',
  domain: 'YOUR_AUTH0_DOMAIN',
  callbackURL: location.href,
  packageIdentifier: 'YOUR_PACKAGE_ID'
};

```

Can someone please clarify what are “YOUR\_CLIENT\_ID”, “YOUR\_AUTH0\_DOMAIN” and “YOUR\_PACKAGE\_ID”? I assumed “clientID” and “clientid” take the same value. “YOUR\_CLIENT\_ID” is the consumer key from the Salesforce Connected App “YOUR\_AUTH0\_DOMAIN” is the domain created inside auth0. e.g. .auth0.com but not sure where to find ‘YOUR\_PACKAGE\_ID’

Also, the last section says as below. Where should I run the below command to get the Token?

> Call the Delegation endpoint from  
> Auth0 to get a token for Salesforce  
> API

```
curl --data \
 "client_id=YOUR_CLIENT_ID&\
 &grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer\
 &refresh_token=\
 &scope=open_id\
 &api_type=salesforce_api"\
 https://YOUR_ACCOUNT.auth0.com/delegation

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/setting-up-auth0-for-salesforce-authentication/8620/2 "2018-03-02T05:57:12Z")

</div>


