plugin-oauth2 icon indicating copy to clipboard operation
plugin-oauth2 copied to clipboard

Error "Action not implemented" with Nextcloud as OAuth2-Provider

Open fanningert opened this issue 6 years ago • 3 comments

Hi, It looks like everythink is working. But after granting access, I get following error.

Internal Error: Action not implemented

My way to configure NextCloud and Kanboard.

In Nextcloud I add a OAuth-Client. Name: nextcloud.example.com Redirect URL: https://kanboard.example.com/?controller=OAuthController&action=handler&plugin=OAuth2

In Kanboard I set following values in the fields for the OAuth Settings. Client-ID: Copy from NextCloud Client-Secret: Copy from NextCloud Authorize URL: https://nextcloud.example.com/index.php/apps/oauth2/authorize Token URL: https://nextcloud.example.com/index.php/apps/oauth2/api/v1/token User API URL: https://nextcloud.example.com/index.php/ocs/v1.php/cloud/users Username Key: ocs.data.id Name Key: ocs.data.displayname Email Key: ocs.data.email User ID Key: ocs.data.id Allow Account Creation: X Allow account creation only for those domains: example.com

Please tell me if you need more informations.

Request-List:

https://kanboard.example.com/?controller=OAuthController&action=handler&plugin=OAuth2
https://nextcloud.example.com/index.php/apps/oauth2/authorize?response_type=code&client_id=xxxxxx&redirect_uri=https%3A%2F%2Fkanboard.example.com%2F%3Fcontroller%3DOAuthController%26action%3Dhandler%26plugin%3DOAuth2&scope=&state=xxxxxx

Now I see the NextCloud authorize screen and I click on it

https://nextcloud.example.com/index.php/login/flow
https://kanboard.example.com/?controller=OAuthController&action=handler&plugin=OAuth2?state=xxxxxx&code=xxxxxx

On this Request I get error message.

fanningert avatar Jun 28 '18 18:06 fanningert