Skip to content

Commit

Permalink
https://serval-api.org/ - add the slash
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Oct 25, 2023
1 parent 2b66ece commit a75975c
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 179 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
environment:
- ASPNETCORE_ENVIRONMENT=Staging
- Auth__Domain=sil-appbuilder.auth0.com
- Auth__Audience=https://serval-api.org
- Auth__Audience=https://serval-api.org/
- ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:80
- ASPNETCORE_Kestrel__Endpoints__Http2__Url=http://*:81
- ASPNETCORE_Kestrel__Endpoints__Http2__Protocols=Http2
Expand Down
2 changes: 1 addition & 1 deletion samples/ServalApp/serval_auth_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update_token(self):
data = {
"client_id": f"{self.__client_id}",
"client_secret": f"{self.__client_secret}",
"audience": "https://serval-api.org",
"audience": "https://serval-api.org/",
"grant_type": "client_credentials",
}

Expand Down
394 changes: 222 additions & 172 deletions scripts/load_testing.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Serval.ApiServer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"AllowedHosts": "*",
"Auth": {
"Domain": "sil-appbuilder.auth0.com",
"Audience": "https://serval-api.org"
"Audience": "https://serval-api.org/"
},
"DataFile": {
"FilesDirectory": "/var/lib/serval/files"
Expand Down
2 changes: 1 addition & 1 deletion src/Serval.ApiServer/wwwroot/js/auth0.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var f = window.fetch;
window.fetch = function (url, opts) {
if (opts && opts.body && typeof opts.body === 'string' && opts.body.indexOf('client_credentials') !== -1) {
// We know the audience - just add it.
opts.body += '&audience=https://serval-api.org';
opts.body += '&audience=https://serval-api.org/';
}
return f(url, opts);
};
2 changes: 1 addition & 1 deletion tests/Serval.E2ETests/MissingServicesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class MissingServicesTests
[SetUp]
public void Setup()
{
_helperClient = new ServalClientHelper("https://machine.sil.org", ignoreSSLErrors: true);
_helperClient = new ServalClientHelper("https://serval-api.org/", ignoreSSLErrors: true);
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion tests/Serval.E2ETests/ServalApiSlowTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ServalApiSlowTests
[SetUp]
public void SetUp()
{
_helperClient = new ServalClientHelper("https://machine.sil.org", ignoreSSLErrors: true);
_helperClient = new ServalClientHelper("https://serval-api.org/", ignoreSSLErrors: true);
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion tests/Serval.E2ETests/ServalApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ServalApiTests
[SetUp]
public void SetUp()
{
_helperClient = new ServalClientHelper("https://serval-api.org", ignoreSSLErrors: true);
_helperClient = new ServalClientHelper("https://serval-api.org/", ignoreSSLErrors: true);
}

[Test]
Expand Down

0 comments on commit a75975c

Please sign in to comment.