You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"errors": [
{
"message": "Service \"oauth2\" is unavailable. Service returned unexpected response: A required parameter \"client_id\" is missing.",
"extensions": {
"service": "oauth2",
"reason": "Service returned unexpected response: A required parameter \"client_id\" is missing",
"code": "SERVICE_UNAVAILABLE"
}
}
]
}
Upon investigating further it seems like accessToken api called from openid-client isnt passing client_id and client_secret as request body, I made below change to /api/auth/drivers/oauth2/.js and it seems to work, but I dint investigate how this change would impact other providers.
Can you check whether #9521 (comment) helps?
Cause it might be the same problem as in the linked issue, where the value of AUTH_LINKEDIN_CLIENT_ID is mistakenly interpreted as a number and thus ignored by the openid-client library.
Describe the Bug
I'm trying to implement linkedIn oauth, but i get below error on auth callback, i tried both hosted and localhost no luck
error
here's the .env
Upon investigating further it seems like accessToken api called from
openid-client
isnt passingclient_id
andclient_secret
as request body, I made below change to/api/auth/drivers/oauth2/.js
and it seems to work, but I dint investigate how this change would impact other providers.from
to
I'd be happy to send a fix if you agree with the change or have any suggestions.
To Reproduce
use above config and and try to login using linkedIn
Directus Version
v11.1.0
Hosting Strategy
Self-Hosted (Docker Image)
Database
sqlite
The text was updated successfully, but these errors were encountered: