I’m trying to implement OAuth on my web app.
but It works only creator’s account.
is there any steps to activate for others account?
// error message from patreon
“errors”: [
{
“code”: null,
“code_name”: “OAuthClientViewForbidden”,
“detail”: “You do not have permission to view OAuth Client with id [my-client-id].”,
“id”: “[my-id]”,
“status”: “403”,
“title”: “You do not have permission to view this OAuth Client.”
}
]
I tried the steps in your API docs. (https://docs.patreon.com/#step-3-handling-oauth-redirect)
“As I said”, it works well with a Creator’s account(which registered my web app).
it was perfectly same process and same parameter (except login account in patreon).
I just want to know is there any steps to activate my OAuth ticket and if so, how can I activate them.
here is the process I tried.
POST www.patreon.com/api/oauth2/token
code=<single use code, as passed in to GET route [2]>
&grant_type=authorization_code
&client_id=<your client id>
&client_secret=<your client secret>
&redirect_uri=<redirect_uri>
{
"errors":[
{
"code": null,
"code_name": "OAuthClientViewForbidden",
"detail": "You do not have permission to view OAuth Client with id <my patreon oauth client id>.",
"id": "<my patreon uuid>",
"status": "403",
"title": "You do not have permission to view this OAuth Client."
}
]
}
Oh! You’re having trouble refreshing the token! That wasn’t clear to me before. Are you using the refresh token returned from the initial request to /token? And if you could keep the uuid id in your posts here, that’s the request UUID and it will help us debug your requests. It is not “secret” information.
in your docs, step 5.
“You may use the received access_token to make API calls. For example, a typical first usage of the new access_token would be to fetch the user’s profile info, and either merge that into their existing account on your site, or make a new account for them. You could then use their pledge level to show or hide certain parts of your site.”
Does this not mean using access_token to get user’s profile?
I used access_token to get user’s profile both creator’s account and others account.
Don’t you have the process to activate any applications?
Will my app be able to authorize other users by just registering my application?
You can definitely get the user’s profile using your access token by making a request to /api/oauth2/v2/identity
I don’t quite understand the question here… you should be able to authenticate any user using your app, and store their access token to make requests to the API on their behalf.