- fix issue #47 using this library without server url causes exception.
- switched concatMap with switchMap (should be a better fit for that scenerio)
- added ability to force "exchangeForToken" by setting it to true in
IOauthOptions
- added ability to force "exchangeForToken" and provide your own implementation by providing an exchangeForToken function in
IOauthOptions
- Aligned default config with Satellizer (added Spotify)
- AOT compilation now works
- Peer dependency is now ^2.0.0
- BREAKING CHANGE: Changed service names to have "Service" postfix ("Auth" is now AuthService) all except JwtHttp which remains the same.
- BREAKING CHANGE: Initializing the library works like this now:
export class MyAuthConfig extends CustomConfig {
defaultHeaders = {'Content-Type': 'application/json'};
providers = {google: {clientId: GOOGLE_CLIENT_ID}};
}
@NgModule({
imports: [
BrowserModule,
HttpModule,
Ng2UiAuthModule.getWithConfig(MyAuthConfig),
...
]
...
- Added "refresh token" flow, if you configure 'autoRefreshToken' to true then if you call a webservice when the token expires this library automatically sends it to the server using 'refreshUrl' endpoint (can be set in config default = '/auth/refresh') first and then sets a new token if it receives it and tries to call the original request. (issue #41)
- Added 'state' to the 'optionalUrlParams' of google according to issue #43
- after testing issue #29 should be fixed
- reverting to 3.1.2 since the 3.2.0 fix was not enough
- fixed issue #29: extend() did not work causing custom options of popup window size to not work and
authenticate('provider', userCustomData)
with user custom data to not work properly
- fixed issue #27: added missing
authHeader
to ICustomConfig
interface
- support rc2 "withCredentials" http flag
- fixed issue #25: signup should accept "string" user and custom body
- made a different folder for declarations so typescript won't try to re-compile the library
- fixed issue: Not able to send a string user, or the user in the options body.
- updated to support rc.0 and hopefully above
- using rollup to bundle (fixes warning in webpack import)
- breaking change: adding default headers even without authentication
- removed dependency on "flatMap"
- updated peer dependencies to beta.12
- breaking change: removed JWT_HTTP_PROVIDER, JwtHttp is provided in the default provider,
- breaking change: all internal calls use JwtHttp for their calls instead of Http
- added configurable default headers (
NG2_UI_AUTH_PROVIDERS({ defaultHeaders: {'Content-Type': 'application/json'}, providers: {google: {clientId: GOOGLE_CLIENT_ID}}})
)
- added configurable token seperator (
NG2_UI_AUTH_PROVIDERS({ tokenSeparator: '-', providers: {google: {clientId: GOOGLE_CLIENT_ID}}})
)
- fix for JwtHttp to support "Request" class as a parameter.
- bundled the entire sources to dist/ng2-ui-auth.js and provided a minified version
- added a provider for plain JwtHttp (JWT_HTTP_PROVIDER)
- bumped peer dependency to beta.7
- bumped to angular 2.0.0-beta.2
- changed dependencies to angular2 being a "peerDependency"
- changed module from system to commonjs
- Removed dependency on angular-jwt (you can now use the included JwtHttp)
- Readded "authHeader" to the configuration
- Added an api for getting token expiration date (auth.getExpirationDate())
- changed default token prefix and the name of the providers from SATELLIZER_PROVIDERS to NG2_UI_AUTH_PROVIDERS