Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-auth-oidc-client

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-auth-oidc-client - npm Package Versions

1
18

10.0.8

Diff

Changelog

Source

2019-09-20 version 10.0.8

  • reduce size of the package

<a name="2019-09-11"></a>

damienbod
published 10.0.7 •

Changelog

Source

2019-09-11 version 10.0.7

  • Ability to change the amount of seconds for the IsAuthorizedRace to do a Timeout

<a name="2019-09-05"></a>

damienbod
published 10.0.6 •

Changelog

Source

2019-09-05 version 10.0.6

  • fixing url parse wo format
  • documentation fixes

<a name="2019-09-03"></a>

damienbod
published 10.0.5 •

Changelog

Source

2019-09-03 version 10.0.5

  • use_refresh_token configuration added.

<a name="2019-09-01"></a>

damienbod
published 10.0.4 •

Changelog

Source

2019-09-01 version 10.0.4

  • Added support for refresh tokens in code flow
  • expose logger service

<a name="2019-07-30"></a>

damienbod
published 10.0.3 •

Changelog

Source

2019-07-30 version 10.0.3

  • Added a try catch to handle the CORS error that is thrown if the parent has a different origin htne the iframe. Issue #466

<a name="2019-06-25"></a>

damienbod
published 10.0.2 •

Changelog

Source

2019-06-25 version 10.0.2

  • bug fix: onConfigurationLoaded does not fired
  • bug fix: [SSR] Session storage is not defined

<a name="2019-06-21"></a>

damienbod
published 10.0.1 •

Changelog

Source

2019-06-21 version 10.0.1

  • revert angular build to angular 7, fix npm dist

<a name="2019-06-21"></a>

damienbod
published 10.0.0 •

Changelog

Source

2019-05-24 version 10.0.0

  • remove silent_redirect_url only use silent_renew_url
  • refactored configuration for module, angular style
  • rename OpenIDImplicitFlowConfiguration to OpenIDConfiguration

Breaking changes

Before

this.oidcConfigService.onConfigurationLoaded.subscribe(() => {

	const openIDImplicitFlowConfiguration = new OpenIDImplicitFlowConfiguration();
	openIDImplicitFlowConfiguration.stsServer = this.oidcConfigService.clientConfiguration.stsServer;
	openIDImplicitFlowConfiguration.redirect_url = this.oidcConfigService.clientConfiguration.redirect_url;
	openIDImplicitFlowConfiguration.client_id = this.oidcConfigService.clientConfiguration.client_id;
	openIDImplicitFlowConfiguration.response_type = this.oidcConfigService.clientConfiguration.response_type;

	...

	configuration.FileServer = this.oidcConfigService.clientConfiguration.apiFileServer;
	configuration.Server = this.oidcConfigService.clientConfiguration.apiServer;

	const authWellKnownEndpoints = new AuthWellKnownEndpoints();
	authWellKnownEndpoints.setWellKnownEndpoints(this.oidcConfigService.wellKnownEndpoints);

	this.oidcSecurityService.setupModule(openIDImplicitFlowConfiguration, authWellKnownEndpoints);

After


import {
    AuthModule,
    OidcSecurityService,
    ConfigResult,
    OidcConfigService,
    OpenIdConfiguration
} from 'angular-auth-oidc-client';

export function loadConfig(oidcConfigService: OidcConfigService) {
    console.log('APP_INITIALIZER STARTING');
    return () => oidcConfigService.load(`${window.location.origin}/api/ClientAppSettings`);
}

@NgModule({
    imports: [
        ...
        HttpClientModule,
        AuthModule.forRoot(),
    ],
    providers: [
        OidcConfigService,
        OidcSecurityService,
        {
            provide: APP_INITIALIZER,
            useFactory: loadConfig,
            deps: [OidcConfigService],
            multi: true
        }
    ],
    bootstrap: [AppComponent],
})

export class AppModule {

    constructor(
        private oidcSecurityService: OidcSecurityService,
        private oidcConfigService: OidcConfigService,
    ) {

        this.oidcConfigService.onConfigurationLoaded.subscribe((configResult: ConfigResult) => {

            const config: OpenIdConfiguration = {
                stsServer: configResult.customConfig.stsServer,
                redirect_url: configResult.customConfig.redirect_url,
                client_id: configResult.customConfig.client_id,
                response_type: configResult.customConfig.response_type,
                scope: configResult.customConfig.scope,
                post_logout_redirect_uri: configResult.customConfig.post_logout_redirect_uri,
                start_checksession: configResult.customConfig.start_checksession,
                silent_renew: configResult.customConfig.silent_renew,
                silent_renew_url: configResult.customConfig.redirect_url + '/silent-renew.html',
                post_login_route: configResult.customConfig.startup_route,
                forbidden_route: configResult.customConfig.forbidden_route,
                unauthorized_route: configResult.customConfig.unauthorized_route,
                log_console_warning_active: configResult.customConfig.log_console_warning_active,
                log_console_debug_active: configResult.customConfig.log_console_debug_active,
                max_id_token_iat_offset_allowed_in_seconds: configResult.customConfig.max_id_token_iat_offset_allowed_in_seconds,
                history_cleanup_off: true
                // iss_validation_off: false
                // disable_iat_offset_validation: true
            };

            this.oidcSecurityService.setupModule(config, configResult.authWellknownEndpoints);
        });
    }
}

<a name="2019-05-21"></a>

damienbod
published 9.0.8 •

Changelog

Source

2019-05-21 version 9.0.8

  • authNonce not cleared in storage after unsuccessful login and logout
  • Should 5 seconds timeout on silent_renew be configurable? => fails fast now if server responds

<a name="2019-04-28"></a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc