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

Unable to authenticate #19

Open
coolbunnyx opened this issue Feb 11, 2024 · 1 comment
Open

Unable to authenticate #19

coolbunnyx opened this issue Feb 11, 2024 · 1 comment

Comments

@coolbunnyx
Copy link

I registered an application on unsplash.com, and it associates with following information
Application ID
Access Key
Secret key
Redirect URI

I tried to match the above information to the arguments as follows
client_id = "Application ID"
client_secret = "Secret key"
redirect_uri = "Redirect URI"
code = ""

auth = Auth(client_id, client_secret, redirect_uri, code=code)
api = Api(auth)

However, I am getting Error message (1) if I use Access Key as "code", and getting Error message (2) if leaving "code" as none.
Error Message (1)
Unsplash Authentication Error: (invalid_client) Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.

Error Message (2)
OAuth error: The access token is invalid

@mainpyp
Copy link

mainpyp commented Jun 10, 2024

Hey @coolbunnyx ,
did you fix this problem because I am having the same issue?

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

2 participants