File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
packages/providers/mgt-msal2-provider/src
samples/msal2provider-asp-net-core-sso Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -318,9 +318,15 @@ export class Msal2Provider extends IProvider {
318318 return this . isMultipleAccountEnabled ;
319319 }
320320
321- private sessionStorageRequestedScopesKey = 'mgt-requested-scopes' ;
322- private sessionStorageDeniedScopesKey = 'mgt-denied-scopes' ;
323- private homeAccountKey = '275f3731-e4a4-468a-bf9c-baca24b31e26' ;
321+ private get sessionStorageRequestedScopesKey ( ) {
322+ return 'mgt-requested-scopes' ;
323+ }
324+ private get sessionStorageDeniedScopesKey ( ) {
325+ return 'mgt-denied-scopes' ;
326+ }
327+ private get homeAccountKey ( ) {
328+ return '275f3731-e4a4-468a-bf9c-baca24b31e26' ;
329+ }
324330
325331 public constructor ( config : Msal2Config | Msal2PublicClientApplicationConfig ) {
326332 super ( ) ;
@@ -398,6 +404,7 @@ export class Msal2Provider extends IProvider {
398404 await this . trySilentSignIn ( ) ;
399405 }
400406 } catch ( e ) {
407+ console . error ( '🦒: Problem attempting to sign in' , e ) ;
401408 throw e ;
402409 }
403410 }
@@ -717,6 +724,7 @@ export class Msal2Provider extends IProvider {
717724 const response = await this . _publicClientApplication . acquireTokenPopup ( accessTokenRequest ) ;
718725 return response . accessToken ;
719726 } catch ( popUpErr ) {
727+ console . error ( '🦒: problem with pop-up sign in' , popUpErr ) ;
720728 throw popUpErr ;
721729 }
722730 }
Original file line number Diff line number Diff line change 1212
1313 @if (User .Identity .IsAuthenticated )
1414 {
15- <script src =" https://unpkg.com/@@microsoft/mgt@2/dist/bundle/mgt-loader.js" ></script >
15+ <!-- <script src="https://unpkg.com/@@microsoft/[email protected] /dist/bundle/mgt-loader.js"></script> --> 16+ <!-- if v3 is not yet published then use the above line -->
17+ <script src =" https://unpkg.com/@@microsoft/mgt@3/dist/bundle/mgt-loader.js" ></script >
1618<script >
1719 mgt .Providers .globalProvider = new mgt.Msal2Provider ({
1820 clientId: " @Configuration[" AzureAd: ClientId" ]" ,
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net7 .0</TargetFramework >
55 <UserSecretsId >aspnet-mgt_sso-FC64487B-1465-4E73-8AC6-CA78BD16A1B0</UserSecretsId >
66 <RootNamespace >mgt_sso</RootNamespace >
77 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments