WIP audiences

This commit is contained in:
Paul Schneider 2026-07-12 01:17:52 +01:00
commit f3bb039d2f
15 changed files with 102 additions and 82 deletions

View file

@ -10,7 +10,7 @@ namespace cli
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string Authority { get; set; }
public string Audience { get; set; }
public string[] Audience { get; set; }
public string SiteAccessSheme { get; set; } = "http";
public int Port { get; set; }
public string Scope { get; set; } = "profile";
@ -21,14 +21,14 @@ namespace cli
return Port==0 ? $"{SiteAccessSheme}://{Authority}/authorize" :
$"{SiteAccessSheme}://{Authority}:{Port}/authorize" ;
} }
[NotMapped]
[JsonIgnore]
public string RedirectUrl {get {
return Port==0 ? $"{SiteAccessSheme}://{Authority}/oauth/success" :
$"{SiteAccessSheme}://{Authority}:{Port}/oauth/success" ;
} }
[NotMapped]
[JsonIgnore]
public string AccessTokenUrl { get {