1.0.5 • Published 6 years ago

torii-azure-ad2-provider v1.0.5

Weekly downloads
46
License
MIT
Repository
github
Last release
6 years ago

torii-azure-ad2-provider

This add-on adds a azure-ad2-oauth2 provider to your Ember application. Torii itself must be installed in the app.

Compatibility

  • Ember.js v3.8 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install torii
ember install torii-azure-ad2-provider

Usage

Edit /config/environment.js and add your Torii provider configuration:

module.exports = function(environment) {
  let ENV = {

  // ... other ENV config stuff here

   torii: {
      providers: {
        'azure-ad2-oauth2': {
          tenantId: 'Azure app tenant ID',
          apiKey: 'Azure app client ID',
          redirectUri: 'http://localhost:4200/torii/redirect.html'
        }
      }
    }
  }

  return ENV;
};

Options that can be configured:

OptionRequiredDefaultDescription
apiKeyxApplication ID of your app
tenantIdcommonTenant value in the path of the authorize request
scopeoffline_access User.ReadA space-separated list of scopes that you want the user to consent to
redirectUriRedirect URI of the app for the authentication response

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago