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

No FileDataStore available in Google.Apis.Utils.Store package (Targeting UWP) #941

Closed
sguergachi opened this issue Mar 23, 2017 · 12 comments
Assignees

Comments

@sguergachi
Copy link

According to this documentation: https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#credentials

I should be able to pass a FileDataStore (https://developers.google.com/api-client-library/dotnet/reference/1.10.0/classGoogle_1_1Apis_1_1Util_1_1Store_1_1FileDataStore) object to store credentials via GoogleWebAuthorizationBroker.AuthorizeAsync but Google.Apis.Utils.Store doesn't seem to have FileDataStore.

@sguergachi sguergachi changed the title No FileDataStore available in Google.Apis nugget package No FileDataStore available in Google.Apis.Utils.Store package Mar 23, 2017
@LindaLawton
Copy link
Collaborator

What framework are you targeting? Which nuget package did you use?

@sguergachi
Copy link
Author

using Google.Apis.Util.Store (nugget: Google.Apis version 1.22.0) and using Google.Apis.Auth.OAuth2 (nugget: Google.Apis.Oauth2.v2 version 1.22.0.672)

@jskeet
Copy link
Collaborator

jskeet commented Mar 23, 2017

That tells us the packages you're using, but not the framework you're targeting.

@sguergachi
Copy link
Author

I thought I listed both... by package you mean the nuget package I use right?

@jskeet
Copy link
Collaborator

jskeet commented Mar 23, 2017

Yes, but you haven't told us the framework you're targeting, e.g. .Net Core framework netstandard1.5, or desktop .Net v4.5.2 or whatever.

@sguergachi
Copy link
Author

sguergachi commented Mar 23, 2017

Oh sorry, I'm building a UWP app. I can't seem to find a target framework for UWP apps (unlike other .NET projects) in VS.

Edit: Targeting Windows 10 Anniversary Edition (Universal Windows)

@jskeet
Copy link
Collaborator

jskeet commented Mar 23, 2017

My understanding is that UWP simply isn't supported in general yet (although we do hope to do so) - see #787. I don't know whether when UWP is supported, it will necessarily support FileDataStore...

@LindaLawton
Copy link
Collaborator

If I recall correctly service accounts work as it doesn't need filedatastore. Oauth2 dosent due to the missing references.

@sguergachi
Copy link
Author

Alright then, I was just following the example. If it's not needed then great. I don't know if I should close this issue now since it's still an outstanding issue for UWP...

@vhngroup
Copy link

issue is solved?.

@sguergachi
Copy link
Author

sguergachi commented Mar 24, 2017 via email

@sguergachi sguergachi changed the title No FileDataStore available in Google.Apis.Utils.Store package No FileDataStore available in Google.Apis.Utils.Store package (Targeting UWP) Mar 26, 2017
@chrisdunelm
Copy link
Contributor

UWP isn't currently supported, so closing this issue for now.

If we decide to support UWP in the future, there will be a suitable file-based IDataStore implementation made available.

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

5 participants