Skip to content

ringcentral-tutorials/oauth-implicit-js-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

RingCentral 3-Legged OAuth Demo in JavaScript

Overview

This is a quick 3-legged OAuth implicit grant flow demo that runs using client-side JavaScript with the RingCentral JavaScript SDK v3.2.0.

Installation

$ git clone https://github.com/ringcentral-tutorials/oauth-implicit-js-demo.git
cd oauth-implicit-js-demo

Configuration

Edit the ./public/config.js file to configure your client ID and redirect URL, etc.

$ cd ./public
$ cp config-sample.js config.js
$ vi config.js

In the Developer Portal, ensure the redirect URI in your config file has been entered in your app configuration. By default, the URL is set to the following for this demo:

http://localhost:8080/callback.html

Usage

Serve the static page with http-server:

$ npm install -g http-server
$ http-server public

You can also serve the static pages with nginx or apache as you like.

Go to the URL:

http://localhost:8080

Then click the Login with RingCentral button to authorize the demo app and view the access token. Click the Renew Access Token button to renew the access token.

About

ringcentral oauth implicit grant flow demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •