aad_oauth icon indicating copy to clipboard operation
aad_oauth copied to clipboard

Working example needed for web imlementation

Open Freez opened this issue 2 years ago • 7 comments

I try to implement this package in our app but have a lot of issues.

That's possible because I may have done something wrong myself, but I wonder whether the web implementation still works with the latest version of MSAL (2.35.0) and Flutter/Dart.

Does anyone have this working well in a web app? And has anyone managed to come up with a solution for the double login call? Maybe someone could provide a working example because the existing example doesn't work.

Freez avatar Sep 12 '23 11:09 Freez

@Freez I had no problem with the package on ios. But did not manage to get it working for web. flutter: 3.13.3 aad_oauth: 0.4.4

benbuf avatar Sep 20 '23 08:09 benbuf

@benbuf same here

I did receive a token in the web app, but the redirect does not work (yet). I'll try again later because I think it's possible to get this working.

Freez avatar Sep 20 '23 13:09 Freez

@Freez I have the same issue too.

giuseppevega avatar Sep 25 '23 16:09 giuseppevega

@giuseppevega Yesterday I added the onGenerateRoute to check if the requested url contains a code parameter. In that case I send the app to a screen with an additional parameter to restart the login function. But it doesn't work, after redirection I got exceptions from msal.js

I'll try to get it working in a while because I really need it for this app.

Freez avatar Sep 26 '23 07:09 Freez

Give it a try this morning, I managed to get the code from the redirect but I don't know how to get the acces token. Anyone who figure this out?

Freez avatar Oct 13 '23 12:10 Freez

same problem for me after authentication it is redirecting but can get a token and user details in mobile it is working ,is anyone found solutions please let me know

Refaydeen avatar Jan 15 '24 17:01 Refaydeen

Did anyone get a solution to the web auth flow

tratum avatar Jun 08 '24 06:06 tratum

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you still think this issue is needed, reopen it again.

github-actions[bot] avatar Aug 10 '24 02:08 github-actions[bot]

Closing this issue due to lack of activity.

github-actions[bot] avatar Sep 10 '24 02:09 github-actions[bot]