File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 66 */
77
88import { customElement , property } from 'lit-element' ;
9+ import { Configuration } from 'msal' ;
910import { Providers } from '../../Providers' ;
1011import { TeamsConfig , TeamsProvider } from '../../providers/TeamsProvider' ;
1112import { MgtBaseProvider } from './baseProvider' ;
@@ -41,6 +42,13 @@ export class MgtTeamsProvider extends MgtBaseProvider {
4142 } )
4243 public authPopupUrl = '' ;
4344
45+ /**
46+ * The authority to use.
47+ *
48+ * @memberof MgtTeamsProvider
49+ */
50+ @property ( ) public authority ;
51+
4452 /**
4553 * Comma separated list of scopes.
4654 *
@@ -80,6 +88,16 @@ export class MgtTeamsProvider extends MgtBaseProvider {
8088 }
8189 }
8290
91+ if ( this . authority ) {
92+ const msalConfig : Configuration = {
93+ auth : {
94+ authority : this . authority ,
95+ clientId : this . clientId
96+ }
97+ } ;
98+ config . msalOptions = msalConfig ;
99+ }
100+
83101 this . provider = new TeamsProvider ( config ) ;
84102 Providers . globalProvider = this . provider ;
85103 }
You can’t perform that action at this time.
0 commit comments