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

Get CredentialCache / silent token refresh with MSA but without App Store association #62

Open
SERWare opened this issue Jan 26, 2018 · 0 comments

Comments

@SERWare
Copy link

SERWare commented Jan 26, 2018

Hi,

I'm testing a UWP application and authentication works well using the Authenticate() method of the MSA provider. But when I try to use the example to get the Credential Cache using RestoreMostRecentFromCacheOrAuthenticateUserAsync(), I get an exception.

System.ArgumentException
HResult=0x80070057
Message=Value does not fall within the expected range.
Source=System.Private.CoreLib
StackTrace:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

I think it's because I don't have associated the App in the Store. But I don't want to create an account in the store until the application works correctly. So I have two questions:

Is it possible to get the CredentialCache without associating the UWP application in the store?

What happens if I try the same in a WPF Net 4.7.1 application that cannot be associated with the store?

Thanks

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

1 participant