ember-simple-auth-keycloak

0.0.6 • Public • Published

ember-simple-auth-keycloak

Adds keycloak authenticators for ember-simple-auth and torii

Installation

ember install ember-simple-auth-keycloak

Usage

  1. Add to configuration
//config/environment.js

   torii: {
      sessionServiceName: 'session',
      providers: {
        'keycloak-oauth-implicit':{
          redirectUri: 'http://localhost:4200/torii/redirect.html',
          clientId: 'hackathon',
          realmName: 'Hackathons',
          baseUrl: 'http://localhost:8080/auth/realms/Hackathons/protocol/openid-connect/auth',
        }
      }
    },
  1. Use as you work torii:
//controller.js

this.get('session').authenticate('authenticator:keycloak', {
    provider: 'keycloak-oauth-implicit'
})

Contributing

Installation

  • git clone <repository-url>
  • cd ember-simple-auth-keycloak
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i ember-simple-auth-keycloak

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

11.4 kB

Total Files

10

Last publish

Collaborators

  • bartam