Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

A simple login API for Hayden Hall mobile app

Notifications You must be signed in to change notification settings

hayden-hall/auth0-salesforce-login-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login API for Hayden Hall Mobile App

Deploy

Setup

  1. Deploy this app to Heroku
  2. Open Auth0 app and enable [Password] authentication type at advanced settings section. Then add your users.
  3. Open the Heroku app setting and set config variables for Salesforce authentication.

API

POST /login

Request

  • Content-Type: application/json
  • Body:
{
    "email": "john@example.com",
    "password": "test1234!"
}

Reponsse

Success (200)

{
    "access_token": "00D28000000W2x5!AQQAQNTgJ_KyS9.BuohNq9_Awami_.OL9MiZe24bTt75Un56KChhd7lfJ2J.R_XdgP2cvx_clufew6i9acH8FKG9wacaDdgj",
    "instance_url": "https://YOUR_INSTANCE_OR_DOMAIN.salesforce.com"
}

Error (401)

Invalid login email or password.

About

A simple login API for Hayden Hall mobile app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published