{"repo":"adfinis/ember-simple-auth-oidc","free":true,"listed":false,"github":"https://github.com/adfinis/ember-simple-auth-oidc","clone":"git clone https://github.com/adfinis/ember-simple-auth-oidc.git","description":"ember-simple-auth authenticator for the OpenID Connect standard","language":"JavaScript","stars":22,"topics":["ember","ember-simple-auth","authentication","openid-connect","ember-addon"],"license":"LGPL-3.0","category":"auth-billing-email","readme_excerpt":"ember-simple-auth-oidc A Ember Simple Auth addon which implements the OpenID Connect Authorization Code Flow. Installation - Ember.js v4.12 or above - Ember CLI v4.12 or above - Node.js v18 or above - Ember Simple Auth v6 or above Note: The addon uses Proxy in its implementation, if IE browser support is necessary, a polyfill needs to be provided. If you're upgrading from 3.x to 4.x see the upgrade guide. Usage To use the oidc authorization code flow the following elements need to be added to the Ember application. The login / authentication route (for example the Ember Simple Auth default /login ) needs to extend from the OIDCAuthenticationRoute , which handles the authentication procedure. In case the user is already authenticated, the transition is aborted. Authenticated routes need to call session.requireAuthentication in their respective beforeModel , to ensure that unauthenticated transitions are prevented and redirected to the authentication route. It's recommended to await the beforeModel hook, to make sure authentication is handled before other API calls are triggered (which might lead to 401 responses, potentially causing redirect loops). To include authorization info in all Ember Data requests override headers in the application adapter and include session.headers alongside any other necessary headers. By extending the application adapter from either of the provided OIDCJSONAPIAdapter or OIDCRESTAdapter , the access token is refreshed before Ember Data requests, if","default_branch":null,"files":null,"tree":[],"storefront":"/r/adfinis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adfinis/ember-simple-auth-oidc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}