?
This commit is contained in:
parent
09604092c5
commit
713f66f1a7
3 changed files with 5 additions and 27 deletions
|
|
@ -18,11 +18,12 @@ namespace Yavsc.Org.Tests
|
|||
[Fact]
|
||||
public async Task ObtainServiceToken()
|
||||
{
|
||||
var serverUrl = _serverFixture.Addresses.FirstOrDefault(u => u.StartsWith("https:"));
|
||||
var serverUrl = _serverFixture.SiteSettings.Authority;
|
||||
if (string.IsNullOrEmpty(serverUrl))
|
||||
throw new InvalidOperationException("No HTTPS server address found");
|
||||
|
||||
HttpClient client = NewHttpClient();
|
||||
|
||||
var disco = await client.GetDiscoveryDocumentAsync(serverUrl);
|
||||
if (disco.IsError) throw new Exception(disco.Error);
|
||||
|
||||
|
|
@ -45,7 +46,7 @@ namespace Yavsc.Org.Tests
|
|||
[Fact]
|
||||
public async Task ObtainResourceOwnerPasswordToken()
|
||||
{
|
||||
var serverUrl = _serverFixture.Addresses.FirstOrDefault(u => u.StartsWith("https:"));
|
||||
var serverUrl = _serverFixture.SiteSettings.Authority;
|
||||
if (string.IsNullOrEmpty(serverUrl))
|
||||
throw new InvalidOperationException("No HTTPS server address found");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue