Skip to content

OAuth2 client for testing the "Apply with Passport" integration

License

Notifications You must be signed in to change notification settings

getonepass/passport.apply.test.client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test client for "Apply with Passport"

OAuth2 client for testing the "Apply with Passport" integration

Setup

  • clone repo
  • install dependencies npm i
  • modify config.js
    • port default 9090
    • baseUrl used to build redirect_uri
    • client object is passed as options to client-oauth2
      • clientId The client id string assigned to you by the provider
      • clientSecret The client secret string assigned to you by the provider (not required for token)
      • accessTokenUri The url to request the access token (not required for token)
      • authorizationUri The url to redirect users to authenticate with the provider (only required for token and code)
      • getApplicationUri The url to get the user data (only required for token and code)
      • redirectUri A custom url for the provider to redirect users back to your application (only required for token and code)
      • scopes An array of scopes to authenticate against
      • state Nonce sent back with the redirect when authorization is complete to verify authenticity (should be random for every request)
    • paths.applyFlowStart this path will start authentication sequence (eg: redirect to get authorization code)
    • paths.authFlowCallback callback path finishes OAuth flow and renders token. Also used to build redirect_uri
    • paths.resourceData callback path gets and renders the user data.
  • start app node index
  • open baseUrl and follow Get auth token link to initiate auth flow

About

OAuth2 client for testing the "Apply with Passport" integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published