flutter - Retrieving tokens from aad_b2c_webview - Stack Overflow

时间: 2025-01-06 admin 业界

I wanted to leverage Microsofts Azure B2C package aad_b2c_webview manage secure login into android app built earlier.

Use case is user lands on login page, after signing into their Azure B2C account, they are able to see the home screen that provides them links to other screens (e.g. profile, dashboard, account) within the android app.

Followed the instructions as per

It works, but I am struggling to understand what exactly is happening, and there is almost no viable documentation (its as if Microsoft abandoned this project).

  1. Is it necessary to use deep links? My understanding of deep links is that its primarily used to create seamless xp between web and app, so your users get redirected to app as opposed to website, in my case there is no website so nowhere to host assetlinks.json file (unless i buy a domain, create and host it which seems redudnant). This is only a android app.
  2. I am assuming the meta-data and intent-filter has to be stored within the is this correct?
  3. It mentiones the use of flutter secure storage fore storage and retrieval of access related information (access token, refresh token etc.), how do we access this in subsequent pages to retrieve the relevant tokens?
  4. How does it handle logout mechanism or is this something we have to create using ADB2CEmbedWebView?

Thanks guys.