Skip to content

Radioafricagroup/AuthApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting Up AuthAPP React app

Clone this repository locally

  • run git clone https://github.com/cob04/AuthApp.git

Install dependencies

  • Change directory to AuthApp with the command cd AuthApp
  • Run npm i to install all the React app's dependencies

Run app

  • Run npm start to start a local server. This should open the browser on the location localhost:3000

Setting up the mock OAuth service

Due to unresolved CORS issues with https://test-auth.songamusic.com/oauth/token/ I have opted to run a dummy server for use in the requesting access token step of the OAuth Flow

Below are instructions on how to set up the dummy mock server.

  • Change directory to mock-api with the command cd mock-api
  • Install dependencies with npm i
  • Run the mock server with the command node server.js in your terminal.
  • This will run a server listening at http://localhost:4000
  • The server can only receive POST requests for the endpoint http://locahost:4000/oauth/token/

About

React OAuth auth application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.7%
  • CSS 9.0%
  • HTML 4.3%