Skip to content

This repo supports a 2018 handson workshop where we build a React SPA that calls access controlled REST APIs. In the meantime, the state of practice has moved on - this is better captured in the riders repo.

Notifications You must be signed in to change notification settings

JohanPeeters/rest-client-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo supports our (Mich-b and me) summer 2018 workshop on REST API access control. It illustrates 3 different API access control strategies on a React client:

  • API keys
  • OAuth 2.0 Resource Owner Password Credentials grant
  • OpenID Connect Implicit Flow

There is a separate branch for each. There is also a branch that starts from the bare bones OpenID Connect Implicit Flow implementation and adds silent authentication. Silent authentication avoids the need for user interaction with the authorization server when new security tokens are needed.

Currently you are on the master branch. The master branch should be a good starting point to try to develop these strategies yourself. If you get stuck, you can refer to the feature branch that implements the strategy you are trying to learn.

Detailed instructions for the workshops are available online.

The project was bootstrapped with Create React App and can be extended as such.

Installing

git clone git@github.com:JohanPeeters/react-rest-client.git
cd react-rest-client
npm install

Prerequisites:

  • Node.js
  • git

Running the application

npm start

in the local repo runs the app in development mode. It can be viewed in the browser at http://localhost:3000.

About

This repo supports a 2018 handson workshop where we build a React SPA that calls access controlled REST APIs. In the meantime, the state of practice has moved on - this is better captured in the riders repo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published