Closed tommyhlw closed 7 months ago
I unfortunately don't really know PHP but as it seems you'd require changing the settings.php template and use any php library that supports client credentials grant for the requests. You can add a suitable client in the settings.json file of Etherpad like this:
{
"client_id": "client_credentials",
"redirect_uris": [],
"response_types": [],
"grant_types": ["client_credentials"],
"client_secret": "client_credentials",
"extraParams": [
{
"name": "admin",
"value": "true"
}
]
}
A beta version (0.11.0-beta.1) with OAuth2 support was released and will be available in a few minutes on Nextcloud App Store. A >2.0.2
version of Etherpad is required so we can use the client_credentials
grant type (introduced in https://github.com/ether/etherpad-lite/pull/6325).
I’ll add some documentation in the main README.md
before the final 0.11.0 release.
Please tell me if you encounter any issue!
happy to read this. Thank you for maintaining OwnPad
With etherpad-lite 2.X there is OAuth2.0 enforced and the used APIKEY is not offered anymore: https://github.com/ether/etherpad-lite/issues/6320
Input of ClientId and Secret would be required for Nextcloud and a service requesting a valid jwt for authentication.