zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

Use NextCloud API with Keycloak token #444

Closed romain-akvize closed 5 months ago

romain-akvize commented 6 months ago

Hello,

I would like to call Nextcloud APIs to browse user files like calling GET https://cloud.domain/ocs/v2.php/search/providers/files/search?term=cat (cf https://docs.nextcloud.com/server/20/developer_manual/digging_deeper/search.html ).

The user is authenticated in another app with Keycloak. How can I convert a Keycloak JWT token to a valid session on the Nextcloud API please ?

From what I see in the documentation, the Nextcloud API is waitig for a basic auth (login:password) but it’s not possible with a Keycloak user :( .

zorn-v commented 5 months ago

Sorry, not now. It is not "auth" plugin, but just "I just want to login via social"