@armhil/easy-addins-oauth-client

0.0.5 • Public • Published

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>

Dependents (0)

Package Sidebar

Install

npm i @armhil/easy-addins-oauth-client

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

5.01 kB

Total Files

4

Last publish

Collaborators

  • armhil