adamkrogh / goodreads-dotnet

:books: Goodreads .NET API Client Library
MIT License
51 stars 15 forks source link

can't get access token #21

Open jojoblaze opened 4 years ago

jojoblaze commented 4 years ago

I was following Goodreads.Demo but I have slightly modified it to adapt on a MVC web app. On callback I receive oauth_token (its not empty, so I assume it is valid) and authorize == 1 but at the next step when I call client.GetAccessToken, the OAuthAccessToken is empty. Token and Secret are null.

I am running the sample on my local machine.

VladimirRybalko commented 4 years ago

I suppose that in the web scenario you need to redirect your users somehow to the Auth Goodreads page. It means, your users need to allow your app to connect to the their Goodreads account. As far as I know, this is a mandatory step. Have you done it?

In any case, could you please share a small MVC example in order to reproduce such behavior? Thanks in advance.

msn200331 commented 10 months ago

It seems like the issue might be related to the OAuth authentication flow. To address this, please double-check the following:

Verify that the OAuth parameters (client ID, client secret, callback URL) are correct and match the configurations in your Goodreads developer account.

Ensure that the callback URL specified in your application matches the one registered with Goodreads.

Confirm that the OAuth handshake is being initiated correctly after receiving the oauth_token and authorize == 1.

If the issue persists, I recommend revisiting the OAuth authentication flow in your application and reviewing the Goodreads API documentation for any specific requirements or best practices.