mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Implemented Nextcloud OAuth2 Hack
Fixed: OAuth2 authentication via Nextcloud(tested Nextcloud 17.0.2-18.0.0) Todo: actually use the profile data: Fullname and Email in Profile
This commit is contained in:
parent
70f5326099
commit
7bba07ccbf
2 changed files with 26 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ OAuth.registerService('oidc', 2, null, function (query) {
|
|||
var expiresAt = (+new Date) + (1000 * parseInt(token.expires_in, 10));
|
||||
|
||||
var userinfo = getUserInfo(accessToken);
|
||||
if (userinfo.ocs) userinfo = userinfo.ocs.data; // Nextcloud hack
|
||||
if (debug) console.log('XXX: userinfo:', userinfo);
|
||||
|
||||
var serviceData = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue