Socket
Socket
Sign inDemoInstall

ember-cli-simple-auth-input-oauth2-redo

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-simple-auth-input-oauth2-redo

Include the Ember Simple Auth OAuth 2.0 extension library into an Ember CLI application.


Version published
Maintainers
1
Created

Readme

Source

Ember Simple Auth OAuth 2.0

This is an npm package that contains the Ember Simple Auth OAuth 2.0 extension library packaged as an Ember CLI Addon.

Installation

Ember Simple Auth OAuth 2.0 requires at least Ember CLI 0.0.44.

ember install ember-cli-simple-auth-input
ember install ember-cli-simple-auth-oauth2-input

in your Ember CLI project's root.

If you're using Ember CLI 0.2.2 or older, run

ember install:addon ember-cli-simple-auth-input
ember install:addon ember-cli-simple-auth-input-oauth2

If you're using Ember CLI 0.1.4 or older, run

npm install --save-dev ember-cli-simple-auth-input
ember generate ember-cli-simple-auth-input
npm install --save-dev ember-cli-simple-auth-input-oauth2
ember generate ember-cli-simple-auth-input-oauth2

Configuration

Ember Simple Auth OAuth 2.0 uses the Ember CLI project's configuration as defined in config/environment.js. Configure values for ENV['simple-auth-oauth2'], e.g.:

ENV['simple-auth-oauth2'] = {
  serverTokenEndpoint: 'http://path.com/to/your/access_token/end_point',
  serverTokenRevocationEndpoint: 'http://path.com/to/your/access_token/revocation_point',
  refreshAccessTokens: false, //specify if you want to to periodically request new tokens
  authenticationInputFormat: { // data format expected by the authenticating server - these attributes are used to collect input data sent to the authentication server
    headers: ['app-id', 'secretId'],
    formAttributes: [] //ex: ['grant_type', 'username', 'password']
  },
  authenticationResponseFormat: { //data format returned by the server - *required*
  //these values tells the authentication library how to token and expiration date from the server response
    expires_in: '', //ex: 'expires_in',
    refresh_token: '', //ex: 'refresh_token.value',
    access_token: '' //ex: 'access_token.value'
  }
};

For the actual Ember Simple Auth repository see https://github.com/simplabs/ember-simple-auth-input

Keywords

FAQs

Last updated on 14 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc