Socket
Socket
Sign inDemoInstall

angular-auth-oidc-client

Package Overview
Dependencies
431
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.3 to 15.0.4

esm2020/lib/flows/flows.models.mjs

2

lib/auth-state/check-auth.service.d.ts
import { Observable } from 'rxjs';
import { AuthStateService } from '../auth-state/auth-state.service';
import { AuthStateService } from './auth-state.service';
import { AutoLoginService } from '../auto-login/auto-login.service';

@@ -4,0 +4,0 @@ import { CallbackService } from '../callback/callback.service';

@@ -10,3 +10,2 @@ import { InjectionToken, ModuleWithProviders, Provider } from '@angular/core';

loader?: Provider;
storage?: any;
}

@@ -13,0 +12,0 @@ export declare function createStaticLoader(passedConfig: PassedInitialConfig): StsConfigStaticLoader;

import { Router } from '@angular/router';
import { OpenIdConfiguration } from '../config/openid-configuration';
import { StoragePersistenceService } from '../storage/storage-persistence.service';
import { OpenIdConfiguration } from './../config/openid-configuration';
import * as i0 from "@angular/core";

@@ -13,2 +13,3 @@ export declare class AutoLoginService {

*
* @param config The OpenId configuration.
* @param url The redirect URL to save.

@@ -15,0 +16,0 @@ */

@@ -0,4 +1,4 @@

import { OpenIdConfiguration } from '../config/openid-configuration';
import { LoggerService } from '../logging/logger.service';
import { StoragePersistenceService } from '../storage/storage-persistence.service';
import { OpenIdConfiguration } from './../config/openid-configuration';
import { RandomService } from './random/random.service';

@@ -23,3 +23,2 @@ import * as i0 from "@angular/core";

resetCodeFlowInProgress(configuration: OpenIdConfiguration): void;
private getCodeFlowInProgressStorageEntry;
isSilentRenewRunning(configuration: OpenIdConfiguration): boolean;

@@ -26,0 +25,0 @@ setSilentRenewRunning(configuration: OpenIdConfiguration): void;

import { LoggerService } from '../../logging/logger.service';
import { CryptoService } from '../../utils/crypto/crypto.service';
import { OpenIdConfiguration } from './../../config/openid-configuration';
import { OpenIdConfiguration } from '../../config/openid-configuration';
import * as i0 from "@angular/core";

@@ -5,0 +5,0 @@ export declare class RandomService {

@@ -6,3 +6,3 @@ import { NgZone } from '@angular/core';

import { StoragePersistenceService } from '../storage/storage-persistence.service';
import { OpenIdConfiguration } from './../config/openid-configuration';
import { OpenIdConfiguration } from '../config/openid-configuration';
import { IFrameService } from './existing-iframe.service';

@@ -9,0 +9,0 @@ import * as i0 from "@angular/core";

@@ -11,3 +11,3 @@ import { Observable } from 'rxjs';

import { FlowHelper } from '../utils/flowHelper/flow-helper.service';
import { OpenIdConfiguration } from './../config/openid-configuration';
import { OpenIdConfiguration } from '../config/openid-configuration';
import { IFrameService } from './existing-iframe.service';

@@ -14,0 +14,0 @@ import * as i0 from "@angular/core";

@@ -22,2 +22,3 @@ export * from './auth-options';

export * from './storage/abstract-security-storage';
export * from './storage/default-localstorage.service';
export * from './user-data/userdata-result';

@@ -24,0 +25,0 @@ export * from './validation/jwtkeys';

@@ -9,4 +9,4 @@ import { Observable } from 'rxjs';

import { LoginResponse } from '../login-response';
import { PopupOptions } from '../popup/popup-options';
import { PopUpService } from '../popup/popup.service';
import { PopupOptions } from './popup-options';
import { PopUpService } from './popup.service';
import { ResponseTypeValidationService } from '../response-type-validation/response-type-validation.service';

@@ -13,0 +13,0 @@ import * as i0 from "@angular/core";

@@ -19,3 +19,2 @@ import { Observable } from 'rxjs';

constructor(document: Document, loggerService: LoggerService, storagePersistenceService: StoragePersistenceService);
currentWindowIsPopUp(): boolean;
isCurrentlyInPopup(config: OpenIdConfiguration): boolean;

@@ -27,3 +26,2 @@ openPopUp(url: string, popupOptions: PopupOptions, config: OpenIdConfiguration): void;

private getOptions;
private mainWindowHasPopupOpen;
private canAccessSessionStorage;

@@ -30,0 +28,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<PopUpService, never>;

@@ -8,3 +8,3 @@ import { AuthOptions } from '../../auth-options';

import { ResponseTypeValidationService } from '../response-type-validation/response-type-validation.service';
import { OpenIdConfiguration } from './../../config/openid-configuration';
import { OpenIdConfiguration } from '../../config/openid-configuration';
import * as i0 from "@angular/core";

@@ -11,0 +11,0 @@ export declare class StandardLoginService {

@@ -101,4 +101,2 @@ import { Observable } from 'rxjs';

* @param url The URL to perform the authorization on the behalf of.
* @param configId The configId to perform the authorization on the behalf of. If not passed, all of the current
* configured ones will be used to check.
*

@@ -219,3 +217,3 @@ * @returns An array of `LoginResponse` objects containing all information about the logins

* @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken
* @param authOptions The custom options for the request.
* @param logoutAuthOptions The custom options for the request.
*

@@ -230,3 +228,3 @@ * @returns An observable when the action is finished

* @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken
* @param authOptions with custom parameters and/or an custom url handler
* @param logoutAuthOptions with custom parameters and/or an custom url handler
*/

@@ -233,0 +231,0 @@ logoff(configId?: string, logoutAuthOptions?: LogoutAuthOptions): Observable<unknown>;

@@ -15,6 +15,5 @@ import { Observable } from 'rxjs';

private readonly jwtWindowCryptoService;
private readonly document;
static refreshTokenNoncePlaceholder: string;
keyAlgorithms: string[];
constructor(tokenHelperService: TokenHelperService, loggerService: LoggerService, jwkExtractor: JwkExtractor, jwkWindowCryptoService: JwkWindowCryptoService, jwtWindowCryptoService: JwtWindowCryptoService, document: Document);
constructor(tokenHelperService: TokenHelperService, loggerService: LoggerService, jwkExtractor: JwkExtractor, jwkWindowCryptoService: JwkWindowCryptoService, jwtWindowCryptoService: JwtWindowCryptoService);
hasIdTokenExpired(token: string, configuration: OpenIdConfiguration, offsetSeconds?: number): boolean;

@@ -21,0 +20,0 @@ validateIdTokenExpNotExpired(decodedIdToken: string, configuration: OpenIdConfiguration, offsetSeconds?: number): boolean;

@@ -39,3 +39,3 @@ {

"license": "MIT",
"version": "15.0.3",
"version": "15.0.4",
"description": "Angular Lib for OpenID Connect & OAuth2",

@@ -42,0 +42,0 @@ "schematics": "./schematics/collection.json",

@@ -21,3 +21,3 @@ # Angular Lib for OpenID Connect & OAuth2

- Code samples for most of the common use cases
- [Code samples](https://angular-auth-oidc-client.com/docs/samples/) for most of the common use cases
- Supports schematics via `ng add` support

@@ -73,7 +73,7 @@ - Supports all modern OIDC identity providers

[Explore the Samples here](https://angular-auth-oidc-client.com/docs/samples/samples)
[Explore the Samples here](https://angular-auth-oidc-client.com/docs/samples/)
## Quickstart
For the example of the Code Flow. For further examples please check the [Samples](https://angular-auth-oidc-client.com/docs/samples/samples) Section.
For the example of the Code Flow. For further examples please check the [Samples](https://angular-auth-oidc-client.com/docs/samples/) Section.

@@ -127,3 +127,5 @@ > If you have done the installation with the schematics, these modules and files should be available already!

ngOnInit() {
this.oidcSecurityService.checkAuth().subscribe(({ isAuthenticated, userData, accessToken, idToken }) => {
this.oidcSecurityService.checkAuth().subscribe((loginResponse: LoginResponse) => {
const { isAuthenticated, userData, accessToken, idToken, configId } = loginResponse;
/*...*/

@@ -165,2 +167,19 @@ });

You can use the built in interceptor to add the accesstokens to your request
```ts
AuthModule.forRoot({
config: {
// ...
secureRoutes: ['https://my-secure-url.com/', 'https://my-second-secure-url.com/'],
},
}),
```
```ts
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
],
```
## Versions

@@ -167,0 +186,0 @@

@@ -8,3 +8,3 @@ "use strict";

name: 'angular-auth-oidc-client',
version: '15.0.3',
version: '15.0.4',
},

@@ -11,0 +11,0 @@ ];

{
"name": "schematics",
"version": "15.0.3",
"version": "15.0.4",
"description": "A schematic for the Angular Lib for OpenID Connect & OAuth2",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc