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

ServiceCredential implementation missing for Windows 8.1 #758

Closed
Shaamaan opened this issue Jun 16, 2016 · 4 comments
Closed

ServiceCredential implementation missing for Windows 8.1 #758

Shaamaan opened this issue Jun 16, 2016 · 4 comments
Assignees

Comments

@Shaamaan
Copy link

Shaamaan commented Jun 16, 2016

I'm trying to create a screenshot upload mechanism for my Windows 8.1 Metro style application.

I wanted the application to upload screenshots using a service account to a specified Google Drive - it's for trouble-shooting purposes (think "report a problem" type functionality).

Sadly, it appears I cannot connect the application using a service account. I've managed to get the app to connect using OAuth, but this requires the user to specify credentials - something I don't want to do.

All documentation points to the use of the ServiceAccountCredential class. However, this class is missing from the Windows 8.1 nugget. There's a ServiceCredential class, but it's abstract and as such cannot be used.

Is this feature simply not implemented for Windows 8.1 Metro apps, or is there a trick to doing this?

@LindaLawton
Copy link
Collaborator

What is the exact error message you are getting?

Did you give the service account access to the Drive account you want to upload to? Other wise its just going to try to upload the files to its own drive account.

Some code would be helpful

@chrisdunelm
Copy link
Contributor

chrisdunelm commented Jul 28, 2016

This feature is currently not implemented for Windows 8.1 apps, only net45 applications.

That is, the code is in GoogleApis.Auth.PlatformServices_Shared/OAuth2/ServiceAccountCredential.cs
And not in GoogleApis.Auth.Windows/OAuth2

We are currently doing some work around platform support and auth, and may support this (no guarantee...)

@chrisdunelm
Copy link
Contributor

ServiceAccountCredential is also not available in the netstandard (.NET Core) build.
This is because it uses cryptography classes (e.g. RSACryptoServiceProvider) which are not available on Windows 8.1 and Linux platforms.
To support ServiceAccountCredential on these platforms we'll need to re-implement using an alternative RSA implemented. This is almost certainly possible, but is not yet done.

@chrisdunelm chrisdunelm changed the title ServiceCredential implementation missing for Windows 8.1 projects ServiceCredential implementation missing for Windows 8.1 & netstandard projects Aug 4, 2016
@chrisdunelm chrisdunelm changed the title ServiceCredential implementation missing for Windows 8.1 & netstandard projects ServiceCredential implementation missing for Windows 8.1 Aug 9, 2016
@chrisdunelm
Copy link
Contributor

We will not be implementing ServiceAccountCredential for Windows 8.1 apps.
As described in #787 we will be gradually phasing out active support for various older platforms, incluing Windows 8.1 apps.

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

3 participants