Google.Music icon indicating copy to clipboard operation
Google.Music copied to clipboard

Question: Web App/OAuth

Open scgough opened this issue 9 years ago • 5 comments

Hi there, Is there a way of hooking this into a web-based app using OAuth as the authentication method for the session? i.e. Bearer: [Token] in the header I'd like to be able to let any valid user auth with Google, not just set an 'app-wide' password.

On a side-note, is it possible to remove tracks from playlists and switch them between public/private

scgough avatar Sep 14 '16 11:09 scgough

To be honest i haven't tried doing so, but guessing that it is a google API, i would say it is possible. Right now im not that fluent with OAuth (hence why the authentication is still only password based, rather than a web dialog or something similar).

On the playlist note, that is one thing i have forgotten to add.

Ill wack up some issues and see what i can get done tomorrow for you :smile:

coman3 avatar Sep 14 '16 11:09 coman3

Great thank you! Re: oauth - I can handle all of the account side of things in my app. It there was a new kind of session object that accepted the token string from my oauth request and appended it as a 'bearer' header to any API request it should work

scgough avatar Sep 14 '16 12:09 scgough

Just Added the playlist modifications, check out the latest commit (314d91c07f7d403e643fc8503f8a7d8b283063e7).

Using the MobileClient class will make your life easy :smile:

Also on the OAuth, i dont have time to look at it today sadly, but ill try and get on it soon

coman3 avatar Sep 15 '16 02:09 coman3

Thank you very much. I'll take a look at that. Out of interest, I have installed the https://www.nuget.org/packages/GoogleMusicApi/ package to my web project but this repo is actually https://www.nuget.org/packages/GoogleMusicApi.UWP/ isn't it. Am I better off installing the UWP version?

scgough avatar Sep 15 '16 07:09 scgough

Currently this repo is only https://www.nuget.org/packages/GoogleMusicApi.UWP ., i dont know how i can get MyGet to include multiple package types into one package....

For now that NuGet Package should work for all windows applications, although i will be moving it to PCL when i get the time (supports everything then).

coman3 avatar Sep 15 '16 11:09 coman3