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

SCOPE SSO #118

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]
}

}
Loading