Comments (10)
@Prasannavenkatesh1 @jaym-xa PR has been raised here: #11
from aad_b2c_webview.
Following is my flutter code for the package,
const aadB2CClientID = 'random-95eb-val-a09b-token';
const aadB2CRedirectURL = 'https://login.live.com/oauth0_desktop.srf';
const aadB2CUserFlowName = 'B2C_1A_signin_Mobile_Dev';
const aadB2CScopes = ['openid', 'offline_access'];
const aadB2TenantName = 'testTenantName';
const aadB2CUserAuthFlow = 'https://<aadB2TenantName>.b2clogin.com/tfp/<aadB2TenantName>.onmicrosoft.com/';
return Scaffold(
body: ADB2CEmbedWebView(
tenantBaseUrl: aadB2CUserAuthFlow,
userFlowName: aadB2CUserFlowName,
clientId: aadB2CClientID,
redirectUrl: aadB2CRedirectURL,
scopes: aadB2CScopes,
onAnyTokenRetrieved: (Token anyToken) {},
onIDToken: (Token token) {
log('idToken==> ${token?.value ?? ''}');
},
onAccessToken: (Token token) {
accessToken = token.value;
log('accessToken==> ${accessToken ?? ''}');
},
onRefreshToken: (Token token) {
refreshToken = token.value;
log('refreshToken==> ${refreshToken ?? ''}');
},
optionalParameters: const [],
onRedirect: (context) {
log('accessToken==> ${accessToken ?? ''}');
log('refreshToken==> ${refreshToken ?? ''}');
return {
// Push user to new screen.
};
},
),
);
So I was trying this demo as it in example package. But it was not working.
I'm always getting idToken and refreshToken. I was never getting accessToken. Also, inside the package itself you are not showing how to accesstoken in example demo. It's a basic need. Please fix and update.
Looking forward to having update on this issue.
from aad_b2c_webview.
@mohanajuhi166 Now working perfectly fine. I'm getting accessToken and refreshToken for the users.
Thank you.
from aad_b2c_webview.
Hi, we will have a look into this issue asap and will update!
from aad_b2c_webview.
@Prasannavenkatesh1 can you post the exact error and what example url/configs etc have you used?
from aad_b2c_webview.
@mohanajuhi166 Any updates on this package? I'm also facing the same issue.
from aad_b2c_webview.
@Prasannavenkatesh1 @jaym-xa PR has been raised here: #11
@mohanajuhi166 Thank you for quick support. Will check and update.
from aad_b2c_webview.
@jaym-xa please wait for this to be reviewed and merged. And then , we will get the changes published.
from aad_b2c_webview.
@jaym-xa please have a look and let me know, if you run into issues.
from aad_b2c_webview.
Solved.
from aad_b2c_webview.
Related Issues (18)
- Not able to logout user for azure b2c login HOT 2
- Forget Password back button click is not redirect to login screen. HOT 3
- Redirecting on IOS HOT 3
- Not compatible with the latest version of flutter
- Bug with login using web view - method call in the wrong place HOT 8
- Not compatible with webview_flutter ^4 HOT 1
- Add Support For Enable Keep Me Signed In Flow - Flutter Username Password autofill from next session if already added remember me option HOT 1
- Redirect uri HOT 3
- Tokens returned but App does not redirect properly HOT 7
- Please help on React Native b2c login HOT 2
- ERROR the request does not contains a client id parameter HOT 4
- The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
- When ios wrapper will be release HOT 3
- ResponseType as default / code throws error HOT 1
- Google Sign In issue HOT 1
- Google login error that says “403 disallowed_useragent,” HOT 1
- Library stops working after 0.0.51 for Android HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aad_b2c_webview.