Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Oauth 2.0 API instead #5

Open
GAS85 opened this issue Jul 29, 2021 · 3 comments
Open

Move to Oauth 2.0 API instead #5

GAS85 opened this issue Jul 29, 2021 · 3 comments

Comments

@GAS85
Copy link

GAS85 commented Jul 29, 2021

Hey, how about to move to oauth API?

Admin should create an application in Settings > Security > Client OAuth 2.0 (.../index.php/settings/admin/security). NC Doku: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/oauth2.html

You need ClientID and Client Key.

In dokuwiki you can consume 3 endpoint:

.../index.php/apps/oauth2/authorize
.../index.php/apps/oauth2/api/v1/token
and
.../ocs/v2.php/cloud/user?format=json to get user information

You need to create redirect endpoint: like .../dokuwiki.php?state=[some random]&code=[some random long list of letters and numbers]

@santifa
Copy link
Owner

santifa commented Sep 21, 2021

This sounds interesting but I don't have the time to re-work the whole plugin.
Also, there is/was an OAuth plugin for dokuwiki.

I'll leave this open.

@poVoq
Copy link

poVoq commented Sep 4, 2022

I think for now this does not allow transferring group membership unless the OIDC app is also used.

@GAS85
Copy link
Author

GAS85 commented Sep 9, 2022

Do we need groups there? Basically only return that user name / email is valid for this session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants