Skip to content

A proof-of-concept nodejs oauth client app to authenticate Cratejoy customers from external sites

Notifications You must be signed in to change notification settings

cratejoy/oauth-client-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is an example OAuth client application that can authenticate a Cratejoy store's customers against a custom back-end.

It is useful to Cratejoy merchants who are trying to implement a way for their customers to log into a site or app (outside their Cratejoy-hosted storefront).

This example assumes that you have (more than a little) experience with JavaScript, and are capable of deploying a nodejs application on Heroku. If you don't know where to start, this tutorial is a great resource.

To get OAuth credentials for your application, please submit a request to [email protected].

Environment Variables

Four environment variables are required to log customers into your Cratejoy store:

  • CRATEJOY_OAUTH_CLIENT_ID - Your application client_id (provided by Cratejoy support).
  • CRATEJOY_OAUTH_SECRET - Your application secret key (provided by Cratejoy support).
  • CRATEJOY_STORE_URL - The URL of your cratejoy store's index page, e.g. https://my_store.cratejoy.com
  • SERVICE_URL - The URL of your hosted Heroku app (without the trailing slash).

If you have questions or concerns, reach out to [email protected].

About

A proof-of-concept nodejs oauth client app to authenticate Cratejoy customers from external sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published