Skip to content

Move to Oauth 2.0 API instead #5

@GAS85

Description

@GAS85

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions