Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
SCOPE SSO (#118)
Browse files Browse the repository at this point in the history
Fixes #117
  • Loading branch information
alexcaussades authored Oct 23, 2023
1 parent e81527b commit 53d8866
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthIVAOController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function sso(Request $request, $url = "home")

$base_url = $openid_data["authorization_endpoint"];
$reponse_type = "code";
$scopes = "profile configuration email bookings:write friends friends:read friends:write flight_plans:read flight_plans:write tracker";
$scopes = "profile friends:read friends:write flight_plans:read flight_plans:write";
$state = rand(100000, 999999); // Random string to prevent CSRF attacks

$query = [
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/whazzupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function get_session()
'grant_type' => 'client_credentials',
'client_id' => $idclient,
'client_secret' => $secret,
'scope' => "friends friends:read friends:write traker"
'scope' => "friends:read friends:write tracker"
);

// use key 'http' even if you send the request to https://...
Expand Down
17 changes: 16 additions & 1 deletion database/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,21 @@
}

]
}
},
"6":
{
"id": 7,
"name": "2023 / 32",
"date": "2023-10-23",
"version": "26.2.3",
"option":[
{
"id": 0,
"type": "Change",
"btn": "warning",
"description": "Modification API IVAO"
}
]
}

}

0 comments on commit 53d8866

Please sign in to comment.