@equinor/fusion-framework-module-msal
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -6,2 +6,6 @@ # Change Log | ||
## 1.0.20 (2022-12-01) | ||
**Note:** Version bump only for package @equinor/fusion-framework-module-msal | ||
## 1.0.19 (2022-11-11) | ||
@@ -8,0 +12,0 @@ |
@@ -13,6 +13,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
export class AuthClient extends PublicClientApplication { | ||
constructor(tenantId, config) { | ||
super(config); | ||
this.tenantId = tenantId; | ||
} | ||
get account() { | ||
@@ -39,2 +35,6 @@ const accounts = this.getAllAccounts(); | ||
} | ||
constructor(tenantId, config) { | ||
super(config); | ||
this.tenantId = tenantId; | ||
} | ||
login(options, behavior = defaultBehavior, silent = true) { | ||
@@ -41,0 +41,0 @@ var _a; |
@@ -44,5 +44,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
} | ||
}, | ||
}); | ||
export default module; | ||
//# sourceMappingURL=module.js.map |
@@ -13,6 +13,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
export class AuthProvider { | ||
constructor(_config) { | ||
this._config = _config; | ||
this._clients = {}; | ||
} | ||
get defaultClient() { | ||
@@ -27,2 +23,6 @@ return this.getClient(DEFAULT_CLIENT_NAME); | ||
} | ||
constructor(_config) { | ||
this._config = _config; | ||
this._clients = {}; | ||
} | ||
getClient(name) { | ||
@@ -29,0 +29,0 @@ if (!this._clients[name]) { |
@@ -1,2 +0,2 @@ | ||
export declare type AuthBehavior = 'popup' | 'redirect'; | ||
export type AuthBehavior = 'popup' | 'redirect'; | ||
export declare const defaultBehavior: AuthBehavior; |
import { PublicClientApplication, Configuration, AuthenticationResult, AccountInfo as AccountInfoBase } from '@azure/msal-browser'; | ||
import { AuthBehavior } from './behavior'; | ||
import { AuthRequest } from './request'; | ||
export declare type IdTokenClaims = { | ||
export type IdTokenClaims = { | ||
aud: string; | ||
exp: number; | ||
}; | ||
export declare type AccountInfo = AccountInfoBase & { | ||
export type AccountInfo = AccountInfoBase & { | ||
idTokenClaims?: IdTokenClaims; | ||
@@ -10,0 +10,0 @@ }; |
import { Configuration, IPublicClientApplication } from '@azure/msal-browser'; | ||
import { AuthClient } from './client'; | ||
export declare type AuthClientConfig = Configuration & { | ||
export type AuthClientConfig = Configuration & { | ||
auth: Partial<Configuration['auth']>; | ||
@@ -5,0 +5,0 @@ }; |
import { Logger, LogLevel } from '@azure/msal-browser'; | ||
declare type ConsoleLevel = 'error' | 'warn' | 'info' | 'debug'; | ||
type ConsoleLevel = 'error' | 'warn' | 'info' | 'debug'; | ||
export declare class ConsoleLogger extends Logger { | ||
@@ -4,0 +4,0 @@ constructor(logLevel?: LogLevel); |
import { PopupRequest, RedirectRequest } from '@azure/msal-browser'; | ||
export declare type AuthRequest = PopupRequest | RedirectRequest; | ||
export type AuthRequest = PopupRequest | RedirectRequest; |
import { AuthClientConfig } from './client'; | ||
export declare type AuthClientOptions = { | ||
export type AuthClientOptions = { | ||
tenantId: string; | ||
@@ -4,0 +4,0 @@ clientId: string; |
import { AuthClientOptions, IAuthConfigurator } from './configurator'; | ||
import { IAuthProvider } from './provider'; | ||
import type { Module, IModuleConfigurator } from '@equinor/fusion-framework-module'; | ||
export declare type MsalModule = Module<'auth', IAuthProvider, IAuthConfigurator>; | ||
export type MsalModule = Module<'auth', IAuthProvider, IAuthConfigurator>; | ||
export declare const module: MsalModule; | ||
@@ -6,0 +6,0 @@ export declare const configureMsal: (defaultClient: AuthClientOptions, args?: { |
{ | ||
"name": "@equinor/fusion-framework-module-msal", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "", | ||
@@ -40,3 +40,3 @@ "main": "dist/esm/index.js", | ||
}, | ||
"gitHead": "676b6bab4e586885185d21b14bd61f392e76f74d" | ||
"gitHead": "8771d3b889de73fff04309f106bd132bee668bab" | ||
} |
@@ -48,3 +48,3 @@ import { AuthClientOptions, AuthConfigurator, IAuthConfigurator } from './configurator'; | ||
} | ||
} | ||
}, | ||
}); | ||
@@ -51,0 +51,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128214