Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Releases: salte-io/salte-auth-angularjs

v2.1.3

01 Jul 18:56
Compare
Choose a tag to compare

2.1.3 (2021-07-01)

Bug Fixes

v2.1.2

28 Aug 15:38
Compare
Choose a tag to compare

2.1.2 (2019-08-28)

Bug Fixes

v2.1.1

14 Aug 22:06
Compare
Choose a tag to compare

2.1.1 (2018-08-14)

Bug Fixes

  • updated to the latest version of semantic-release (4ace954)

v2.1.0

08 May 19:23
Compare
Choose a tag to compare

2.1.0 (2018-05-08)

Features

  • added support for on and off event listeners (#140) (4f4e9ab)

v2.0.4

07 May 17:49
Compare
Choose a tag to compare

2.0.4 (2018-05-07)

Bug Fixes

v2.0.3

26 Feb 02:02
Compare
Choose a tag to compare

2.0.3 (2018-02-26)

Bug Fixes

v2.0.2

26 Dec 19:59
Compare
Choose a tag to compare

2.0.2 (2017-12-26)

Bug Fixes

v2.0.0

15 Oct 16:34
Compare
Choose a tag to compare

New Features

Manually Execute a Login

exampleModule.controller((SalteAuthService) => {
  SalteAuthService.loginWithIframe().then(() => {
    // We successfully logged in!
  }).catch((error) => {
    // Whoops, looks like something went wrong!
  });

  SalteAuthService.loginWithPopup().then(() => {
    // We successfully logged in!
  }).catch((error) => {
    // Whoops, looks like something went wrong!
  });

  // We don't recommend logging in via redirect 
  // since we can't return a promise.
  SalteAuthService.loginWithRedirect();
});

Manually Execute a Logout

exampleModule.controller((SalteAuthService) => {
  SalteAuthService.logoutWithIframe().then(() => {
    // We successfully logged out!
  }).catch((error) => {
    // Whoops, looks like something went wrong!
  });

  SalteAuthService.logoutWithPopup().then(() => {
    // We successfully logged out!
  }).catch((error) => {
    // Whoops, looks like something went wrong!
  });

  // We don't recommend logging out via redirect 
  // since we can't return a promise.
  SalteAuthService.logoutWithRedirect();
});

Support for UI Router 1.x+

We now support UI Router 1.x+!

BREAKING CHANGES

Setup - init -> setup

Before

exampleModule.config(($httpProvider, salteAuthServiceProvider) => {
  // ...
  salteAuthServiceProvider.init({
    url: 'https://salte-io.auth0.com',
    responseType: 'id_token',
    redirectUrl: location.origin,
    clientId: 'Hzl9Rvu_Ws_s1QKIhI2TXi8NZRn672FC',
    scope: 'openid',

    securedEndpoints: {
      '/api' : 'mySecuredAPI'
    }
  }, $httpProvider);
}

After

exampleModule.config((SalteAuthServiceProvider) => {
  // ...
  SalteAuthServiceProvider.setup({
    providerUrl: 'https://salte-io.auth0.com',
    responseType: 'id_token',
    redirectUrl: location.origin,
    clientId: 'Hzl9Rvu_Ws_s1QKIhI2TXi8NZRn672FC',
    scope: 'openid',

    endpoints: [
      '/api'
    ],

    provider: 'auth0'
  });
}

Securing Routes - requireAuthentication -> secured

Before

exampleModule.config(($stateProvider) => {
  // ...
  $stateProvider.state({
    // ...
    requireAuthentication: true
  });
}

After

exampleModule.config(($stateProvider) => {
  // ...
  $stateProvider.state({
    // ...
    secured: true
  });
}

v1.0.17

03 Feb 21:47
Compare
Choose a tag to compare

<a name"1.0.17">

1.0.17 (2017-02-03)

Bug Fixes

  • package: update salte-auth to version 1.0.20 (#56) (fb013311)

v1.0.16

03 Feb 20:05
Compare
Choose a tag to compare

<a name"1.0.16">

1.0.16 (2017-02-03)

Bug Fixes

  • package: update salte-auth to version 1.0.19 (#55) (055bfebb)