question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Subscription Check

See original GitHub issue

Core Library

MSAL.js v2 (@azure/msal-browser)

Core Library Version

2.23.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

2.2.0

Description

My problem i want to add extra check on login for subscription user state. It is possible to add check on refresh token? And how? I have api to check state of subscription. Or there is other best solution i don’t know?

Any suggestion?

Many Thanks

MSAL Configuration

{ // MSAL Configuration
      auth: {
        clientId: '',
        authority: '',
        redirectUri: '/',
      },
      cache: {
        cacheLocation: BrowserCacheLocation.LocalStorage,
        storeAuthStateInCookie: true, 
      },
      system: {
        loggerOptions: {
          loggerCallback: (logLevel: LogLevel, message: string ) =>{
            //console.log(message);
          },
          // logLevel: LogLevel.Verbose,
          piiLoggingEnabled: false
        }
      }
    }), {
      interactionType: InteractionType.Redirect, // MSAL Guard Configuration      
    }, {
        interactionType: InteractionType.Redirect, // MSAL Interceptor Configuration
        protectedResourceMap: new Map()
    })
  ],
  
  exports: [MsalModule],
}

Relevant Code Snippets

No response

Identity Provider

Azure B2C Custom Policy

Source

External (Customer)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bmahallcommented, Jun 27, 2022

@Toso82 I am currently looking into this , thanks for your patience!

0reactions
msftbot[bot]commented, Jul 27, 2022

@Toso82 This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscription Check Add On Plugin - Paid Memberships Pro
Navigate to Memberships > Subscription Check. Select the appropriate options for the check you would like to run: Mode: Live or Test; Gateway:...
Read more >
Find your purchases, reservations & subscriptions - Android
At the top, tap Payments & subscriptions. Tap Manage purchases, Manage subscriptions, or Manage reservations. To see more details, select an item.
Read more >
Manually Add or Edit a Subscription - WooCommerce
Go to WooCommerce > Subscriptions. Click the Add Subscription button. Add a customer to the subscription. More info below in Add a Subscriber...
Read more >
Manage App Store purchases, subscriptions, settings, and ...
Tap the My Account button or your picture at the top right, then tap Subscriptions. You may need to sign in with your...
Read more >
Manage a Microsoft subscription
Select a link below for the help you need to manage your Microsoft subscription. Illustration for managing recurring billing. Turn on recurring billing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found