wg-access-server icon indicating copy to clipboard operation
wg-access-server copied to clipboard

oauth2 with nextcloud

Open markuman opened this issue 5 years ago • 2 comments

https://docs.nextcloud.com/server/19/developer_manual/client_apis/LoginFlow/index.html#login-flow-v2

I try to configure the oidc (which base on oauth2) against a nextcloud instance.
When I use as issuervalue https://cloud.example.com/index.php/login/v2, I got an error

FATA[0000]oidc.go:39 failed to create oidc provider: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got "text/html; charset=UTF-8": invalid character '<' looking for beginning of value

I'm a bit lost. Or is plain oauth2 not supported? Any chance to support it too?

markuman avatar Sep 26 '20 10:09 markuman

Yeah the OIDC provider doesn't support plain old oauth2. We can open a feature request issue for oauth2 and I or perhaps someone from the community could help out adding it. Support for oauth2 should be straight forward because the current OIDC provider can be adapted for it.

Place1 avatar Oct 18 '20 01:10 Place1

We can open a feature request issue for oauth2 and I or perhaps someone from the community could help out adding it.

That would be awesome!

markuman avatar Oct 18 '20 18:10 markuman