freesound-python icon indicating copy to clipboard operation
freesound-python copied to clipboard

How do I check OAuth verification?

Open rexendevar opened this issue 10 months ago • 2 comments

I don't want to log into the OAuth every time I run the script, but I can't figure out how the hell to call the ME function, especially if I'm not supposed to use FSRequest directly.

rexendevar avatar Mar 07 '25 02:03 rexendevar

I'm not sure what you mean. You need to use OAuth protocol to log in if you want to access the "me" resource. Note that you can use your refresh tokens to renew the access token without redirecting the user to the authorization page.

ffont avatar Mar 07 '25 10:03 ffont

Sorry, I'm still new to programming in general and this is my first time ever encountering OAuth from this perspective. I was intending to store the login or the token or whatever it is as a persistent variable, and to only run the login code if it is necessary (i.e. if trying to access the ME resource throws an error, indicating it has expired). but I don't understand OAuth at all, and you mentioning "refresh tokens" tells me I better do more research since I've not heard of them lol.

On Fri, Mar 7, 2025, 2:37 AM Frederic Font @.***> wrote:

I'm not sure what you mean. You need to use OAuth protocol to log in if you want to access the "me" resource. Note that you can use your refresh tokens to renew the access token without redirecting the user to the authorization page.

— Reply to this email directly, view it on GitHub https://github.com/MTG/freesound-python/issues/40#issuecomment-2706109288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALGGC2PHC3I3KCIDBWMXVTT2TFZG3AVCNFSM6AAAAABYQFANNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBWGEYDSMRYHA . You are receiving this because you authored the thread.Message ID: @.***> [image: ffont]ffont left a comment (MTG/freesound-python#40) https://github.com/MTG/freesound-python/issues/40#issuecomment-2706109288

I'm not sure what you mean. You need to use OAuth protocol to log in if you want to access the "me" resource. Note that you can use your refresh tokens to renew the access token without redirecting the user to the authorization page.

— Reply to this email directly, view it on GitHub https://github.com/MTG/freesound-python/issues/40#issuecomment-2706109288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALGGC2PHC3I3KCIDBWMXVTT2TFZG3AVCNFSM6AAAAABYQFANNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBWGEYDSMRYHA . You are receiving this because you authored the thread.Message ID: @.***>

rexendevar avatar Mar 07 '25 11:03 rexendevar