Class TokenGrantAudienceOverride
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
Endpoint-specific audience override for a token grant.
public sealed record TokenGrantAudienceOverride : IEquatable<TokenGrantAudienceOverride>
- Inheritance
-
TokenGrantAudienceOverride
- Implements
- Inherited Members
Constructors
TokenGrantAudienceOverride(string, uint, string, string, IReadOnlyList<string>)
Endpoint-specific audience override for a token grant.
public TokenGrantAudienceOverride(string Host, uint Port, string Path, string Audience, IReadOnlyList<string> Scopes)
Parameters
HoststringThe endpoint host to match; empty inherits the profile endpoint host.
PortuintThe endpoint port to match; zero matches the profile endpoint port.
PathstringThe endpoint path to match; empty inherits the profile endpoint path.
AudiencestringThe resource audience to request for matching endpoints.
ScopesIReadOnlyList<string>The OAuth2 scopes to request; empty inherits the token grant scopes.
Properties
Audience
The resource audience to request for matching endpoints.
public string Audience { get; init; }
Property Value
Host
The endpoint host to match; empty inherits the profile endpoint host.
public string Host { get; init; }
Property Value
Path
The endpoint path to match; empty inherits the profile endpoint path.
public string Path { get; init; }
Property Value
Port
The endpoint port to match; zero matches the profile endpoint port.
public uint Port { get; init; }
Property Value
Scopes
The OAuth2 scopes to request; empty inherits the token grant scopes.
public IReadOnlyList<string> Scopes { get; init; }