Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist user/token? #215

Open
plettb opened this issue Oct 27, 2022 · 1 comment
Open

Persist user/token? #215

plettb opened this issue Oct 27, 2022 · 1 comment

Comments

@plettb
Copy link

plettb commented Oct 27, 2022

In Maui is there a mechanism for persisting the user or token so that it is available between sessions (i.e. so that the user doesn't actually have to log in each time they use my app)? I'm not sure if it's the "account" or the "token" that should be cached. In other words, I'm not sure if it's the "PCA.GetAccountsAsync" or the "PCA.AcquireTokenSilent" that should be pre-populated.

Thanks!

P.S. I just noticed that this is only a problem on Windows. Android appears to do this automatically (by default).

@MrDeej
Copy link

MrDeej commented Dec 8, 2022

I have the same issue, except only in MAUI WinUI.

Android/IOS seems to work as expected, but Windows needs logon each time.

I have follow the sample. Maybe because of my certificate for the app, that it do not trust the logon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants