Add /access

This commit is contained in:
2024-09-17 13:05:20 +02:00
parent 702fa64aa8
commit 8d13f33978
8 changed files with 983 additions and 10 deletions

View File

@ -2,6 +2,8 @@
global $GITEA_TOKEN;
global $CREDENTIALS;
global $CLIENT_CREDENTIALS;
global $CLIENT_ACCESS;
global $COMBINED_ACCESS;
$GITEA_TOKEN = 'token';
@ -14,3 +16,17 @@ $CLIENT_CREDENTIALS = [
'username' => 'password',
],
];
$CLIENT_ACCESS = [
'WGX' => [
'name' => 'Winzergenossenschaft',
'api' => 'https://example.com/elwig/api/v1',
],
];
$COMBINED_ACCESS = [
'HOLDING' => [
'name' => 'Name',
'clients' => ['WGX'],
],
];