Commit ed5c7c39 authored by Pål Karlsrud's avatar Pål Karlsrud

Use the actual MAS api when attempting to fetch groups.

parent 1c9bb28c
......@@ -58,8 +58,11 @@ class UserHooks {
}
private function fetchGroups($accesstoken) {
//return $this->fetchJsonAPI($accesstoken, "https://daas-mas.dataporten-api.no/groups/me/groups");
return json_decode('[{"gid": 42, "displayName": "bare en test", "id": "fc:mas:hallaa"}]');
$groups_url = \OC::$server->getConfig()->getSystemValue('social_login_mas_url', "https://mas-groups-test.dataporten-api.no/groups/me/groups");
\OCP\Util::writeLog('remote', "loglog $groups_url", \OCP\Util::DEBUG);
return $this->fetchJsonAPI($accesstoken, $groups_url);
//return json_decode('[{"gid": 42, "displayName": "bare en test", "id": "fc:mas:hallaa"}]');
}
private function logout() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment