@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | $graph = new \Microsoft\Graph\Graph(); |
41 | 41 | $graph->setAccessToken($accessToken); |
42 | 42 | $user = $graph->createRequest('GET', '/me') |
43 | - ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
44 | - ->execute(); |
|
43 | + ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
44 | + ->execute(); |
|
45 | 45 | |
46 | 46 | return $user->jsonSerialize(); |
47 | 47 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | // get the cert from the webserver and load it into an x509 phpseclib object |
99 | 99 | $cert = $this->loadClientCertFromWebserver(); |
100 | - // extract the UPN from the client cert |
|
100 | + // extract the UPN from the client cert |
|
101 | 101 | $upn = $this->getUserPrincipalNameFromClientCert($cert); |
102 | 102 | // get the user if it exists |
103 | 103 | $user_class = config('enterpriseauth.user_class'); |
@@ -163,9 +163,9 @@ discard block |
||
163 | 163 | if (count($groups)) { |
164 | 164 | // remove the users existing database roles before assigning new ones |
165 | 165 | \DB::table('assigned_roles') |
166 | - ->where('entity_id', $user->id) |
|
167 | - ->where('entity_type', get_class($user)) |
|
168 | - ->delete(); |
|
166 | + ->where('entity_id', $user->id) |
|
167 | + ->where('entity_type', get_class($user)) |
|
168 | + ->delete(); |
|
169 | 169 | // add the user to each group they are assigned |
170 | 170 | $user->assign($groups); |
171 | 171 | } |