@armhil/easy-addins-oauth-client
Shared OAuth authentication package for Office add-ins.
Last updated 2 months ago by armhil .
ISC · Original npm · Tarball · package.json
$ cnpm install @armhil/easy-addins-oauth-client 
SYNC missed versions from official npm registry.

easy-addins-auth-client

A client side library which handles the oauth flows for office add-ins. utilizes socket.io.

Configuration

React apps are using .env files. We're using these to configure the auth flows.

Example .env file for OneDrive configuration.

/// OneDrive has to come after OAUTH_ - rest is standard.
REACT_APP_OAUTH_ONEDRIVE=https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=<client_id>&redirect_uri=<redirect_uri>

/// Pass the scopes for the oauth flow.
/// We might need to update this for supporting multiple oauth flows.
REACT_APP_OAUTH_SCOPES=Files.ReadWrite.AppFolder,offline_access

/// Socket server - what's the server we're communicating with...
REACT_APP_OAUTH_SOCKET_SERVER=<server_url>

Current Tags

  • 0.0.5                                ...           latest (2 months ago)

5 Versions

  • 0.0.5                                ...           2 months ago
  • 0.0.4                                ...           2 months ago
  • 0.0.3                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 5
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |