@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | $graph = new \Microsoft\Graph\Graph(); |
| 40 | 40 | $graph->setAccessToken($accessToken); |
| 41 | 41 | $user = $graph->createRequest("GET", "/me") |
| 42 | - ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
| 43 | - ->execute(); |
|
| 42 | + ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
| 43 | + ->execute(); |
|
| 44 | 44 | |
| 45 | 45 | return $user->jsonSerialize(); |
| 46 | 46 | } |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | if (count($groups)) { |
| 132 | 132 | // remove the users existing database roles before assigning new ones |
| 133 | 133 | \DB::table('assigned_roles') |
| 134 | - ->where('entity_id', $user->id) |
|
| 135 | - ->where('entity_type', get_class($user)) |
|
| 136 | - ->delete(); |
|
| 134 | + ->where('entity_id', $user->id) |
|
| 135 | + ->where('entity_type', get_class($user)) |
|
| 136 | + ->delete(); |
|
| 137 | 137 | // add the user to each group they are assigned |
| 138 | 138 | $user->assign($groups); |
| 139 | 139 | } |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | public function buildAuthUrl() |
| 40 | 40 | { |
| 41 | 41 | $url = $this->azureActiveDirectory->authorizationEndpoint |
| 42 | - . '?' |
|
| 43 | - . $this->buildAuthUrlQueryString(); |
|
| 42 | + . '?' |
|
| 43 | + . $this->buildAuthUrlQueryString(); |
|
| 44 | 44 | |
| 45 | 45 | return $url; |
| 46 | 46 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | // Check to see if there is an intended destination url saved |
| 72 | 72 | $destination = $request->session() |
| 73 | - ->get('oauthIntendedUrl'); |
|
| 73 | + ->get('oauthIntendedUrl'); |
|
| 74 | 74 | // If there is no intended destination url, use the default |
| 75 | 75 | if (! $destination) { |
| 76 | 76 | $destination = config('enterpriseauth.redirect_on_login'); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | 'client_secret' => env('AZURE_AD_CLIENT_SECRET'), |
| 97 | 97 | 'redirect_uri' => ENV('AZURE_AD_CALLBACK_URL'), |
| 98 | 98 | 'grant_type' => 'authorization_code', |
| 99 | - ] |
|
| 99 | + ] |
|
| 100 | 100 | ]; |
| 101 | 101 | $response = $guzzle->post($url, $parameters); |
| 102 | 102 | $responseObject = json_decode($response->getBody()); |