Custom provider error: invalid_client #10204
|
I have a custom provider as follows: {
id: "salla",
name: "Salla",
type: "oauth",
authorization: {
url: "https://accounts.salla.sa/oauth2/auth",
params: {
scope: "",
},
},
token: "https://accounts.salla.sa/oauth2/token",
userinfo: "https://accounts.salla.sa/oauth2/user/info",
idToken: false,
profile(profile) {
console.log(profile);
return {
id: profile.id.toString(),
name: profile.name,
email: profile.email,
};
},
clientId: 'MY_CLIENT_ID',
clientSecret: 'MY_CLIENT_SECRET'
}The login page works properly. When I login to the provider with the correct credentials, I get redirected to I changed So eventually, I have an initial guess that the error occurs because Thanks |
Replies: 1 comment
|
I have just fixed it by adding: client: {
token_endpoint_auth_method: 'client_secret_post'
}More info can be found here. |
I have just fixed it by adding:
More info can be found here.