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

angular-oauth2-oidc

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-oauth2-oidc - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0

interceptors/default-oauth.interceptor.d.ts

3

angular-oauth2-oidc.d.ts

@@ -5,1 +5,4 @@ /**

export * from './index';
export { DefaultOAuthInterceptor as ɵd } from './interceptors/default-oauth.interceptor';
export { OAuthNoopResourceServerErrorHandler as ɵb, OAuthResourceServerErrorHandler as ɵa } from './interceptors/resource-server-error-handler';
export { OAuthModuleConfig as ɵc } from './oauth-module.config';

2

angular-oauth2-oidc.metadata.json

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

{"__symbolic":"module","version":3,"metadata":{"OAuthModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"exports":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"OAuthModule"},"providers":[{"__symbolic":"reference","name":"OAuthService"},{"__symbolic":"reference","name":"UrlHelperService"}]}}}},"OAuthService":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AuthConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient"},{"__symbolic":"reference","name":"OAuthStorage"},{"__symbolic":"reference","name":"ValidationHandler"},{"__symbolic":"reference","name":"AuthConfig"},{"__symbolic":"reference","name":"UrlHelperService"}]}],"configure":[{"__symbolic":"method"}],"configChanged":[{"__symbolic":"method"}],"restartSessionChecksIfStillLoggedIn":[{"__symbolic":"method"}],"restartRefreshTimerIfStillLoggedIn":[{"__symbolic":"method"}],"setupSessionCheck":[{"__symbolic":"method"}],"setupAutomaticSilentRefresh":[{"__symbolic":"method"}],"loadDiscoveryDocumentAndTryLogin":[{"__symbolic":"method"}],"loadDiscoveryDocumentAndLogin":[{"__symbolic":"method"}],"debug":[{"__symbolic":"method"}],"validateUrlFromDiscoveryDocument":[{"__symbolic":"method"}],"validateUrlForHttps":[{"__symbolic":"method"}],"validateUrlAgainstIssuer":[{"__symbolic":"method"}],"setupRefreshTimer":[{"__symbolic":"method"}],"setupExpirationTimers":[{"__symbolic":"method"}],"setupAccessTokenTimer":[{"__symbolic":"method"}],"setupIdTokenTimer":[{"__symbolic":"method"}],"clearAccessTokenTimer":[{"__symbolic":"method"}],"clearIdTokenTimer":[{"__symbolic":"method"}],"calcTimeout":[{"__symbolic":"method"}],"setStorage":[{"__symbolic":"method"}],"loadDiscoveryDocument":[{"__symbolic":"method"}],"loadJwks":[{"__symbolic":"method"}],"validateDiscoveryDocument":[{"__symbolic":"method"}],"fetchTokenUsingPasswordFlowAndLoadUserProfile":[{"__symbolic":"method"}],"loadUserProfile":[{"__symbolic":"method"}],"fetchTokenUsingPasswordFlow":[{"__symbolic":"method"}],"refreshToken":[{"__symbolic":"method"}],"removeSilentRefreshEventListener":[{"__symbolic":"method"}],"setupSilentRefreshEventListener":[{"__symbolic":"method"}],"silentRefresh":[{"__symbolic":"method"}],"canPerformSessionCheck":[{"__symbolic":"method"}],"setupSessionCheckEventListener":[{"__symbolic":"method"}],"handleSessionUnchanged":[{"__symbolic":"method"}],"handleSessionChange":[{"__symbolic":"method"}],"waitForSilentRefreshAfterSessionChange":[{"__symbolic":"method"}],"handleSessionError":[{"__symbolic":"method"}],"removeSessionCheckEventListener":[{"__symbolic":"method"}],"initSessionCheck":[{"__symbolic":"method"}],"startSessionCheckTimer":[{"__symbolic":"method"}],"stopSessionCheckTimer":[{"__symbolic":"method"}],"checkSession":[{"__symbolic":"method"}],"createLoginUrl":[{"__symbolic":"method"}],"initImplicitFlow":[{"__symbolic":"method"}],"callOnTokenReceivedIfExists":[{"__symbolic":"method"}],"storeAccessTokenResponse":[{"__symbolic":"method"}],"tryLogin":[{"__symbolic":"method"}],"validateNonceForAccessToken":[{"__symbolic":"method"}],"storeIdToken":[{"__symbolic":"method"}],"storeSessionState":[{"__symbolic":"method"}],"getSessionState":[{"__symbolic":"method"}],"handleLoginError":[{"__symbolic":"method"}],"processIdToken":[{"__symbolic":"method"}],"getIdentityClaims":[{"__symbolic":"method"}],"getIdToken":[{"__symbolic":"method"}],"padBase64":[{"__symbolic":"method"}],"getAccessToken":[{"__symbolic":"method"}],"getRefreshToken":[{"__symbolic":"method"}],"getAccessTokenExpiration":[{"__symbolic":"method"}],"getAccessTokenStoredAt":[{"__symbolic":"method"}],"getIdTokenStoredAt":[{"__symbolic":"method"}],"getIdTokenExpiration":[{"__symbolic":"method"}],"hasValidAccessToken":[{"__symbolic":"method"}],"hasValidIdToken":[{"__symbolic":"method"}],"authorizationHeader":[{"__symbolic":"method"}],"logOut":[{"__symbolic":"method"}],"createAndSaveNonce":[{"__symbolic":"method"}],"createNonce":[{"__symbolic":"method"}],"checkAtHash":[{"__symbolic":"method"}],"checkSignature":[{"__symbolic":"method"}]}},"JwksValidationHandler":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractValidationHandler"},"members":{"validateSignature":[{"__symbolic":"method"}],"alg2kty":[{"__symbolic":"method"}],"calcHash":[{"__symbolic":"method"}],"toByteArrayAsString":[{"__symbolic":"method"}]}},"NullValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}]}},"ValidationParams":{"__symbolic":"interface"},"ValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}]}},"AbstractValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}],"inferHashAlgorithm":[{"__symbolic":"method"}],"calcHash":[{"__symbolic":"method"}]}},"UrlHelperService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getHashFragmentParams":[{"__symbolic":"method"}],"parseQueryString":[{"__symbolic":"method"}]}},"AuthConfig":{"__symbolic":"class","members":{}},"LoginOptions":{"__symbolic":"class","members":{}},"OAuthStorage":{"__symbolic":"class","members":{"getItem":[{"__symbolic":"method"}],"removeItem":[{"__symbolic":"method"}],"setItem":[{"__symbolic":"method"}]}},"ReceivedTokens":{"__symbolic":"class","members":{}},"ParsedIdToken":{"__symbolic":"interface"},"TokenResponse":{"__symbolic":"interface"},"UserInfo":{"__symbolic":"interface"},"OidcDiscoveryDoc":{"__symbolic":"interface"},"AUTH_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["AUTH_CONFIG"]},"EventType":{"__symbolic":"interface"},"OAuthEvent":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":25,"character":23,"context":{"typeName":"EventType"},"module":"./events"}]}]}},"OAuthSuccessEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":31,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"reference","name":"any"}]}]}},"OAuthInfoEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":40,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"reference","name":"any"}]}]}},"OAuthErrorEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":50,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"error","message":"Expression form not supported","line":51,"character":25,"module":"./events"},{"__symbolic":"error","message":"Expression form not supported","line":52,"character":25,"module":"./events"}]}]}}},"origins":{"OAuthModule":"./index","OAuthService":"./oauth-service","JwksValidationHandler":"./token-validation/jwks-validation-handler","NullValidationHandler":"./token-validation/null-validation-handler","ValidationParams":"./token-validation/validation-handler","ValidationHandler":"./token-validation/validation-handler","AbstractValidationHandler":"./token-validation/validation-handler","UrlHelperService":"./url-helper.service","AuthConfig":"./auth.config","LoginOptions":"./types","OAuthStorage":"./types","ReceivedTokens":"./types","ParsedIdToken":"./types","TokenResponse":"./types","UserInfo":"./types","OidcDiscoveryDoc":"./types","AUTH_CONFIG":"./tokens","EventType":"./events","OAuthEvent":"./events","OAuthSuccessEvent":"./events","OAuthInfoEvent":"./events","OAuthErrorEvent":"./events"},"importAs":"angular-oauth2-oidc"}
{"__symbolic":"module","version":3,"metadata":{"createDefaultStorage":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":34,"character":10,"module":"./index"},"right":"undefined"},"thenExpression":{"__symbolic":"reference","name":"sessionStorage"},"elseExpression":null}},"OAuthModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"exports":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[null],"value":{"ngModule":{"__symbolic":"reference","name":"OAuthModule"},"providers":[{"__symbolic":"reference","name":"OAuthService"},{"__symbolic":"reference","name":"UrlHelperService"},{"provide":{"__symbolic":"reference","name":"OAuthStorage"},"useFactory":{"__symbolic":"reference","name":"createDefaultStorage"}},{"provide":{"__symbolic":"reference","name":"ɵa"},"useClass":{"__symbolic":"reference","name":"ɵb"}},{"provide":{"__symbolic":"reference","name":"ɵc"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HTTP_INTERCEPTORS"},"useClass":{"__symbolic":"reference","name":"ɵd"},"multi":true}]}}}},"OAuthService":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AuthConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient"},{"__symbolic":"reference","name":"OAuthStorage"},{"__symbolic":"reference","name":"ValidationHandler"},{"__symbolic":"reference","name":"AuthConfig"},{"__symbolic":"reference","name":"UrlHelperService"}]}],"configure":[{"__symbolic":"method"}],"configChanged":[{"__symbolic":"method"}],"restartSessionChecksIfStillLoggedIn":[{"__symbolic":"method"}],"restartRefreshTimerIfStillLoggedIn":[{"__symbolic":"method"}],"setupSessionCheck":[{"__symbolic":"method"}],"setupAutomaticSilentRefresh":[{"__symbolic":"method"}],"loadDiscoveryDocumentAndTryLogin":[{"__symbolic":"method"}],"loadDiscoveryDocumentAndLogin":[{"__symbolic":"method"}],"debug":[{"__symbolic":"method"}],"validateUrlFromDiscoveryDocument":[{"__symbolic":"method"}],"validateUrlForHttps":[{"__symbolic":"method"}],"validateUrlAgainstIssuer":[{"__symbolic":"method"}],"setupRefreshTimer":[{"__symbolic":"method"}],"setupExpirationTimers":[{"__symbolic":"method"}],"setupAccessTokenTimer":[{"__symbolic":"method"}],"setupIdTokenTimer":[{"__symbolic":"method"}],"clearAccessTokenTimer":[{"__symbolic":"method"}],"clearIdTokenTimer":[{"__symbolic":"method"}],"calcTimeout":[{"__symbolic":"method"}],"setStorage":[{"__symbolic":"method"}],"loadDiscoveryDocument":[{"__symbolic":"method"}],"loadJwks":[{"__symbolic":"method"}],"validateDiscoveryDocument":[{"__symbolic":"method"}],"fetchTokenUsingPasswordFlowAndLoadUserProfile":[{"__symbolic":"method"}],"loadUserProfile":[{"__symbolic":"method"}],"fetchTokenUsingPasswordFlow":[{"__symbolic":"method"}],"refreshToken":[{"__symbolic":"method"}],"removeSilentRefreshEventListener":[{"__symbolic":"method"}],"setupSilentRefreshEventListener":[{"__symbolic":"method"}],"silentRefresh":[{"__symbolic":"method"}],"canPerformSessionCheck":[{"__symbolic":"method"}],"setupSessionCheckEventListener":[{"__symbolic":"method"}],"handleSessionUnchanged":[{"__symbolic":"method"}],"handleSessionChange":[{"__symbolic":"method"}],"waitForSilentRefreshAfterSessionChange":[{"__symbolic":"method"}],"handleSessionError":[{"__symbolic":"method"}],"removeSessionCheckEventListener":[{"__symbolic":"method"}],"initSessionCheck":[{"__symbolic":"method"}],"startSessionCheckTimer":[{"__symbolic":"method"}],"stopSessionCheckTimer":[{"__symbolic":"method"}],"checkSession":[{"__symbolic":"method"}],"createLoginUrl":[{"__symbolic":"method"}],"initImplicitFlowInternal":[{"__symbolic":"method"}],"initImplicitFlow":[{"__symbolic":"method"}],"callOnTokenReceivedIfExists":[{"__symbolic":"method"}],"storeAccessTokenResponse":[{"__symbolic":"method"}],"tryLogin":[{"__symbolic":"method"}],"validateNonceForAccessToken":[{"__symbolic":"method"}],"storeIdToken":[{"__symbolic":"method"}],"storeSessionState":[{"__symbolic":"method"}],"getSessionState":[{"__symbolic":"method"}],"handleLoginError":[{"__symbolic":"method"}],"processIdToken":[{"__symbolic":"method"}],"getIdentityClaims":[{"__symbolic":"method"}],"getIdToken":[{"__symbolic":"method"}],"padBase64":[{"__symbolic":"method"}],"getAccessToken":[{"__symbolic":"method"}],"getRefreshToken":[{"__symbolic":"method"}],"getAccessTokenExpiration":[{"__symbolic":"method"}],"getAccessTokenStoredAt":[{"__symbolic":"method"}],"getIdTokenStoredAt":[{"__symbolic":"method"}],"getIdTokenExpiration":[{"__symbolic":"method"}],"hasValidAccessToken":[{"__symbolic":"method"}],"hasValidIdToken":[{"__symbolic":"method"}],"authorizationHeader":[{"__symbolic":"method"}],"logOut":[{"__symbolic":"method"}],"createAndSaveNonce":[{"__symbolic":"method"}],"createNonce":[{"__symbolic":"method"}],"checkAtHash":[{"__symbolic":"method"}],"checkSignature":[{"__symbolic":"method"}]}},"JwksValidationHandler":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractValidationHandler"},"members":{"validateSignature":[{"__symbolic":"method"}],"alg2kty":[{"__symbolic":"method"}],"calcHash":[{"__symbolic":"method"}],"toByteArrayAsString":[{"__symbolic":"method"}]}},"NullValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}]}},"ValidationParams":{"__symbolic":"interface"},"ValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}]}},"AbstractValidationHandler":{"__symbolic":"class","members":{"validateSignature":[{"__symbolic":"method"}],"validateAtHash":[{"__symbolic":"method"}],"inferHashAlgorithm":[{"__symbolic":"method"}],"calcHash":[{"__symbolic":"method"}]}},"UrlHelperService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getHashFragmentParams":[{"__symbolic":"method"}],"parseQueryString":[{"__symbolic":"method"}]}},"AuthConfig":{"__symbolic":"class","members":{}},"LoginOptions":{"__symbolic":"class","members":{}},"OAuthStorage":{"__symbolic":"class","members":{"getItem":[{"__symbolic":"method"}],"removeItem":[{"__symbolic":"method"}],"setItem":[{"__symbolic":"method"}]}},"ReceivedTokens":{"__symbolic":"class","members":{}},"ParsedIdToken":{"__symbolic":"interface"},"TokenResponse":{"__symbolic":"interface"},"UserInfo":{"__symbolic":"interface"},"OidcDiscoveryDoc":{"__symbolic":"interface"},"AUTH_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["AUTH_CONFIG"]},"EventType":{"__symbolic":"interface"},"OAuthEvent":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":25,"character":23,"context":{"typeName":"EventType"},"module":"./events"}]}]}},"OAuthSuccessEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":31,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"reference","name":"any"}]}]}},"OAuthInfoEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":40,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"reference","name":"any"}]}]}},"OAuthErrorEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"OAuthEvent"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":50,"character":14,"context":{"typeName":"EventType"},"module":"./events"},{"__symbolic":"error","message":"Expression form not supported","line":51,"character":25,"module":"./events"},{"__symbolic":"error","message":"Expression form not supported","line":52,"character":25,"module":"./events"}]}]}},"ɵa":{"__symbolic":"class","members":{"handleError":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","members":{"handleError":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","members":{}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"angular-oauth2-oidc","name":"OAuthStorage"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"}]}],"checkUrl":[{"__symbolic":"method"}],"intercept":[{"__symbolic":"method"}]}}},"origins":{"createDefaultStorage":"./index","OAuthModule":"./index","OAuthService":"./oauth-service","JwksValidationHandler":"./token-validation/jwks-validation-handler","NullValidationHandler":"./token-validation/null-validation-handler","ValidationParams":"./token-validation/validation-handler","ValidationHandler":"./token-validation/validation-handler","AbstractValidationHandler":"./token-validation/validation-handler","UrlHelperService":"./url-helper.service","AuthConfig":"./auth.config","LoginOptions":"./types","OAuthStorage":"./types","ReceivedTokens":"./types","ParsedIdToken":"./types","TokenResponse":"./types","UserInfo":"./types","OidcDiscoveryDoc":"./types","AUTH_CONFIG":"./tokens","EventType":"./events","OAuthEvent":"./events","OAuthSuccessEvent":"./events","OAuthInfoEvent":"./events","OAuthErrorEvent":"./events","ɵa":"./interceptors/resource-server-error-handler","ɵb":"./interceptors/resource-server-error-handler","ɵc":"./oauth-module.config","ɵd":"./interceptors/default-oauth.interceptor"},"importAs":"angular-oauth2-oidc"}

@@ -20,4 +20,6 @@ import { ModuleWithProviders } from '@angular/core';

export * from './events';
import { OAuthModuleConfig } from "./oauth-module.config";
export declare function createDefaultStorage(): Storage;
export declare class OAuthModule {
static forRoot(): ModuleWithProviders;
static forRoot(config?: OAuthModuleConfig): ModuleWithProviders;
}

@@ -43,2 +43,3 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';

private silentRefreshSubject;
private inImplicitFlow;
constructor(http: HttpClient, storage: OAuthStorage, tokenValidationHandler: ValidationHandler, config: AuthConfig, urlHelper: UrlHelperService);

@@ -59,4 +60,4 @@ /**

setupAutomaticSilentRefresh(params?: object): void;
loadDiscoveryDocumentAndTryLogin(): Promise<object>;
loadDiscoveryDocumentAndLogin(): void;
loadDiscoveryDocumentAndTryLogin(options?: LoginOptions): Promise<object>;
loadDiscoveryDocumentAndLogin(options?: LoginOptions): Promise<boolean>;
private debug(...args);

@@ -151,2 +152,3 @@ private validateUrlFromDiscoveryDocument(url);

private createLoginUrl(state?, loginHint?, customRedirectUri?, noPrompt?, params?);
initImplicitFlowInternal(additionalState?: string, params?: string | object): void;
/**

@@ -153,0 +155,0 @@ * Starts the implicit flow and redirects to user to

{
"name": "angular-oauth2-oidc",
"version": "3.0.3",
"version": "3.1.0",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -221,2 +221,9 @@ # angular-oauth2-oidc

### Skipping the login form
If you don't want to display a login form that tells the user that they are redirected to the identity server, you can use the convenince function ``this.oauthService.loadDiscoveryDocumentAndLogin();`` instead of ``this.oauthService.loadDiscoveryDocumentAndTryLogin();`` when setting up the library.
This directly redirects the user to the identity server if there are no valid tokens.
### Calling a Web API with an Access Token

@@ -240,2 +247,8 @@

## Some infos about Routing
## More Documentation

@@ -242,0 +255,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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