Hi,
I am trying to write a little OGS Notifier for the GNOME3 desktop environment. I try to authenticate to the site following the documentation on https://ogs.docs.apiary.io/#reference/authentication/request-a-user-token. Unfortunately, I am not successful in accessing the OAuth2 user token when providing my client-id and client-secret. Although my original code is in GJS, this simple wget line demonstrates the issue:
Am I doing something wrong in the request or is the documentation not up to date any longer? What is the recommended way for an application to authenticate against OGS?
I don’t think it’s a great deal in this case, but don’t post anything that has secret in its name anywhere
Best to XXX all credentials you are using next time. The values aren’t the problem in most cases anyways.
Thank you for the quick answer, flovo! I will follow the recipe that you provide. I did not expect to need the user credentials (username, password) along with the client credentials (id, secret), though. Always learn something new.
Btw. If you look at the client_secret I posted, you will see that I had XXX’ed it, just in a slightly more subtle way
cheers.