@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 2.2.0-next.teamsprovider.9d48fb0 to 2.2.0-preview.0a84ed7
@@ -29,13 +29,13 @@ /** | ||
/** | ||
* The authority to use. | ||
* Comma separated list of scopes | ||
* | ||
* @memberof MgtMsalProvider | ||
*/ | ||
authority: any; | ||
scopes: any; | ||
/** | ||
* Comma separated list of scopes | ||
* The authority to use. | ||
* | ||
* @memberof MgtMsalProvider | ||
*/ | ||
scopes: any; | ||
authority: any; | ||
/** | ||
@@ -42,0 +42,0 @@ * The redirect uri to use |
@@ -79,2 +79,7 @@ /** | ||
} | ||
if (this.prompt) { | ||
let prompt = this.prompt.toUpperCase(); | ||
const promptEnum = PromptType[prompt]; | ||
config.prompt = promptEnum; | ||
} | ||
this.provider = new Msal2Provider(config); | ||
@@ -100,6 +105,2 @@ Providers.globalProvider = this.provider; | ||
__decorate([ | ||
property(), | ||
__metadata("design:type", Object) | ||
], MgtMsal2Provider.prototype, "authority", void 0); | ||
__decorate([ | ||
property({ | ||
@@ -113,2 +114,9 @@ attribute: 'scopes', | ||
property({ | ||
attribute: 'authority', | ||
type: String | ||
}), | ||
__metadata("design:type", Object) | ||
], MgtMsal2Provider.prototype, "authority", void 0); | ||
__decorate([ | ||
property({ | ||
attribute: 'redirect-uri', | ||
@@ -115,0 +123,0 @@ type: String |
{ | ||
"name": "@microsoft/mgt-msal2-provider", | ||
"version": "2.2.0-next.teamsprovider.9d48fb0", | ||
"version": "2.2.0-preview.0a84ed7", | ||
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider", | ||
@@ -42,5 +42,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@microsoft/mgt-element": "2.2.0-next.teamsprovider.9d48fb0", | ||
"@microsoft/mgt-element": "2.2.0-preview.0a84ed7", | ||
"@microsoft/microsoft-graph-client": "^2.2.1", | ||
"@azure/msal-browser": "^2.13.0" | ||
"@azure/msal-browser": "^2.14.1" | ||
}, | ||
@@ -47,0 +47,0 @@ "publishConfig": { |
@@ -43,10 +43,14 @@ /** | ||
/** | ||
* The authority to use. | ||
* Comma separated list of scopes | ||
* | ||
* @memberof MgtMsalProvider | ||
*/ | ||
@property() public authority; | ||
@property({ | ||
attribute: 'scopes', | ||
type: String | ||
}) | ||
public scopes; | ||
/** | ||
* Comma separated list of scopes | ||
* The authority to use. | ||
* | ||
@@ -56,6 +60,6 @@ * @memberof MgtMsalProvider | ||
@property({ | ||
attribute: 'scopes', | ||
attribute: 'authority', | ||
type: String | ||
}) | ||
public scopes; | ||
public authority; | ||
@@ -134,2 +138,8 @@ /** | ||
if (this.prompt) { | ||
let prompt: string = this.prompt.toUpperCase(); | ||
const promptEnum = PromptType[prompt]; | ||
config.prompt = promptEnum; | ||
} | ||
this.provider = new Msal2Provider(config); | ||
@@ -136,0 +146,0 @@ Providers.globalProvider = this.provider; |
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
918623
1570
+ Added@microsoft/mgt-element@2.2.0-preview.0a84ed7(transitive)
+ Addedidb@6.1.5(transitive)
- Removed@microsoft/mgt-element@2.2.0-next.teamsprovider.9d48fb0(transitive)
- Removedidb@5.0.8(transitive)
Updated@azure/msal-browser@^2.14.1