angular-auth-oidc-client
Advanced tools
Comparing version 16.0.1 to 17.0.0
@@ -26,3 +26,3 @@ import { Observable } from 'rxjs'; | ||
getRefreshToken(configuration: OpenIdConfiguration): string; | ||
getAuthenticationResult(configuration: OpenIdConfiguration): any; | ||
getAuthenticationResult(configuration: OpenIdConfiguration): AuthResult; | ||
areAuthStorageTokensValid(configuration: OpenIdConfiguration): boolean; | ||
@@ -29,0 +29,0 @@ hasIdTokenExpiredAndRenewCheckIsEnabled(configuration: OpenIdConfiguration): boolean; |
@@ -21,2 +21,4 @@ import { JwtKeys } from '../validation/jwtkeys'; | ||
state?: any; | ||
scope?: string; | ||
expires_in?: number; | ||
} |
@@ -25,2 +25,3 @@ export { PassedInitialConfig } from './auth-config'; | ||
export * from './storage/default-localstorage.service'; | ||
export * from './storage/default-sessionstorage.service'; | ||
export * from './user-data/userdata-result'; | ||
@@ -27,0 +28,0 @@ export * from './validation/jwtkeys'; |
@@ -12,2 +12,3 @@ import { Observable } from 'rxjs'; | ||
import { OpenIdConfiguration } from './config/openid-configuration'; | ||
import { AuthResult } from './flows/callback-context'; | ||
import { FlowsDataService } from './flows/flows-data.service'; | ||
@@ -149,3 +150,3 @@ import { CheckSessionService } from './iframe/check-session.service'; | ||
*/ | ||
getAuthenticationResult(configId?: string): Observable<any>; | ||
getAuthenticationResult(configId?: string): Observable<AuthResult>; | ||
/** | ||
@@ -152,0 +153,0 @@ * Returns the payload from the ID token. |
@@ -0,3 +1,3 @@ | ||
import { AuthResult } from '../flows/callback-context'; | ||
import { OpenIdConfiguration } from './../config/openid-configuration'; | ||
import { BrowserStorageService } from './browser-storage.service'; | ||
import * as i0 from "@angular/core"; | ||
@@ -7,3 +7,2 @@ export type StorageKeys = 'authnResult' | 'authzData' | 'access_token_expires_at' | 'authWellKnownEndPoints' | 'userData' | 'authNonce' | 'codeVerifier' | 'authStateControl' | 'reusable_refresh_token' | 'session_state' | 'storageSilentRenewRunning' | 'storageCodeFlowInProgress' | 'storageCustomParamsAuthRequest' | 'storageCustomParamsRefresh' | 'storageCustomParamsEndSession' | 'redirect' | 'configIds' | 'jwtKeys' | 'popupauth'; | ||
private readonly browserStorageService; | ||
constructor(browserStorageService: BrowserStorageService); | ||
read(key: StorageKeys, config: OpenIdConfiguration): any; | ||
@@ -18,5 +17,5 @@ write(key: StorageKeys, value: any, config: OpenIdConfiguration): boolean; | ||
getRefreshToken(config: OpenIdConfiguration): string; | ||
getAuthenticationResult(config: OpenIdConfiguration): any; | ||
getAuthenticationResult(config: OpenIdConfiguration): AuthResult; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<StoragePersistenceService, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<StoragePersistenceService>; | ||
} |
@@ -39,3 +39,3 @@ { | ||
"license": "MIT", | ||
"version": "16.0.1", | ||
"version": "17.0.0", | ||
"description": "Angular Lib for OpenID Connect & OAuth2", | ||
@@ -42,0 +42,0 @@ "schematics": "./schematics/collection.json", |
@@ -44,3 +44,3 @@ # Angular Lib for OpenID Connect & OAuth2 | ||
``` | ||
```shell | ||
ng add angular-auth-oidc-client | ||
@@ -47,0 +47,0 @@ ``` |
@@ -8,3 +8,3 @@ "use strict"; | ||
name: 'angular-auth-oidc-client', | ||
version: '16.0.1', | ||
version: '17.0.0', | ||
}, | ||
@@ -11,0 +11,0 @@ ]; |
@@ -38,3 +38,4 @@ "use strict"; | ||
const source = ts.createSourceFile(patchedConfigFile, (configFileContent === null || configFileContent === void 0 ? void 0 : configFileContent.toString('utf-8')) || '', ts.ScriptTarget.Latest, true); | ||
const change = (0, ast_utils_1.insertImport)(source, patchedConfigFile, configName, configPath); | ||
const change = (0, ast_utils_1.insertImport)(source, // Angular uses the TS 5.1 compiler internally for schematics? | ||
patchedConfigFile, configName, configPath); | ||
const recorder = host.beginUpdate(patchedConfigFile); | ||
@@ -41,0 +42,0 @@ if (change instanceof change_1.InsertChange) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
FlowType["DefaultConfig"] = "Default config"; | ||
})(FlowType = exports.FlowType || (exports.FlowType = {})); | ||
})(FlowType || (exports.FlowType = FlowType = {})); | ||
//# sourceMappingURL=schema.js.map |
@@ -144,7 +144,8 @@ "use strict"; | ||
const buildOptions = getProjectTargetOptions(project, 'build'); | ||
if (!buildOptions.main) { | ||
const mainPath = (buildOptions['browser'] || buildOptions['main']); | ||
if (!mainPath) { | ||
throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` + | ||
`workspace config (${project.sourceRoot})`); | ||
} | ||
return buildOptions.main; | ||
return mainPath; | ||
} | ||
@@ -151,0 +152,0 @@ function getProjectTargetOptions(project, buildTarget) { |
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
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
2070979
270
14695