zorn-v / nextcloud-social-login

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

Can not get identifier from provider - External Oauth2 Provider #301

Closed SidSidSid16 closed 2 years ago

SidSidSid16 commented 2 years ago

I have a Django app that acts as an Oauth2 provider and I'm trying to add Nextcloud as a client.

www.example.com => Oauth2 Provider (Django app) cloud.example.com => Nextcloud

Django Configuration Redirection URI: https://cloud.example.com/apps/sociallogin/custom_oauth2/WM Client Type: confidential Authorization Grant Type: authorization-code

Social Login Configuration Internal name: WM API Base URL: https://www.example.com/o/ Authorize URL: https://www.example.com/o/authorize/ Token URL: https://www.example.com/o/token/ Profile URL: https://www.example.com/o/resources/user Logout URL: Scope: read Profile Fields: username Groups claim:

After signing in, I am given an error message stating "Can not get identifier from provider", what is causing this error and how do I fix this?

zorn-v commented 2 years ago

Does your django app supports OpenID connect ?

John-H-Smith commented 2 years ago

Same error occurs while trying to use discord external oauth2-provider (I won't use the discord box below because I would like to integrate role mapping).

zorn-v commented 2 years ago

https://github.com/zorn-v/nextcloud-social-login/issues/304