@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 2.3.0-preview.5b5332e to 2.3.0-preview.5b9fd62
@@ -25,21 +25,21 @@ /** | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
loginType: any; | ||
/** | ||
* Comma separated list of scopes | ||
* The authority to use. | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
scopes: any; | ||
authority: any; | ||
/** | ||
* The authority to use. | ||
* Comma separated list of scopes | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
authority: any; | ||
scopes: any; | ||
/** | ||
* The redirect uri to use | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -57,3 +57,3 @@ redirectUri: any; | ||
* @readonly | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -65,3 +65,3 @@ get isAvailable(): boolean; | ||
* @protected | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -68,0 +68,0 @@ protected initializeProvider(): void; |
@@ -40,3 +40,3 @@ /** | ||
* @readonly | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -50,3 +50,3 @@ get isAvailable() { | ||
* @protected | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -81,7 +81,2 @@ initializeProvider() { | ||
} | ||
if (this.prompt) { | ||
let prompt = this.prompt.toUpperCase(); | ||
const promptEnum = PromptType[prompt]; | ||
config.prompt = promptEnum; | ||
} | ||
this.provider = new Msal2Provider(config); | ||
@@ -107,2 +102,6 @@ Providers.globalProvider = this.provider; | ||
__decorate([ | ||
property(), | ||
__metadata("design:type", Object) | ||
], MgtMsal2Provider.prototype, "authority", void 0); | ||
__decorate([ | ||
property({ | ||
@@ -116,9 +115,2 @@ attribute: 'scopes', | ||
property({ | ||
attribute: 'authority', | ||
type: String | ||
}), | ||
__metadata("design:type", Object) | ||
], MgtMsal2Provider.prototype, "authority", void 0); | ||
__decorate([ | ||
property({ | ||
attribute: 'redirect-uri', | ||
@@ -125,0 +117,0 @@ type: String |
@@ -307,3 +307,3 @@ import { IProvider, LoginType, IProviderAccount } from '@microsoft/mgt-element'; | ||
*/ | ||
private getAccount; | ||
protected getAccount(): AccountInfo | null; | ||
/** | ||
@@ -310,0 +310,0 @@ * Logs out user |
{ | ||
"name": "@microsoft/mgt-msal2-provider", | ||
"version": "2.3.0-preview.5b5332e", | ||
"version": "2.3.0-preview.5b9fd62", | ||
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider", | ||
@@ -42,5 +42,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@microsoft/mgt-element": "2.3.0-preview.5b5332e", | ||
"@microsoft/mgt-element": "2.3.0-preview.5b9fd62", | ||
"@microsoft/microsoft-graph-client": "^2.2.1", | ||
"@azure/msal-browser": "^2.14.1" | ||
"@azure/msal-browser": "^2.14.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "publishConfig": { |
@@ -34,3 +34,3 @@ /** | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -44,22 +44,18 @@ @property({ | ||
/** | ||
* Comma separated list of scopes | ||
* The authority to use. | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@property({ | ||
attribute: 'scopes', | ||
type: String | ||
}) | ||
public scopes; | ||
@property() public authority; | ||
/** | ||
* The authority to use. | ||
* Comma separated list of scopes | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@property({ | ||
attribute: 'authority', | ||
attribute: 'scopes', | ||
type: String | ||
}) | ||
public authority; | ||
public scopes; | ||
@@ -69,3 +65,3 @@ /** | ||
* | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -93,3 +89,3 @@ @property({ | ||
* @readonly | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -104,3 +100,3 @@ public get isAvailable() { | ||
* @protected | ||
* @memberof MgtMsalProvider | ||
* @memberof MgtMsal2Provider | ||
*/ | ||
@@ -141,8 +137,2 @@ protected initializeProvider() { | ||
if (this.prompt) { | ||
let prompt: string = this.prompt.toUpperCase(); | ||
const promptEnum = PromptType[prompt]; | ||
config.prompt = promptEnum; | ||
} | ||
this.provider = new Msal2Provider(config); | ||
@@ -149,0 +139,0 @@ Providers.globalProvider = this.provider; |
@@ -531,3 +531,3 @@ import { | ||
*/ | ||
private getAccount(): AccountInfo | null { | ||
protected getAccount(): AccountInfo | null { | ||
const account = this.getStoredAccount(); | ||
@@ -534,0 +534,0 @@ if (account) { |
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
932562
1617
+ Added@microsoft/mgt-element@2.3.0-preview.5b9fd62(transitive)
- Removed@microsoft/mgt-element@2.3.0-preview.5b5332e(transitive)
Updated@azure/msal-browser@^2.14.2