Skip to content

Commit 28dc4da

Browse files
authored
added TokenEndpoint to BaseConfiguration (AzureAD#1998)
1 parent 93cd144 commit 28dc4da

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/Microsoft.IdentityModel.Protocols.OpenIdConnect/Configuration/OpenIdConnectConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public OpenIdConnectConfiguration(string json)
315315
/// Gets or sets the 'token_endpoint'.
316316
/// </summary>
317317
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore, PropertyName = OpenIdProviderMetadataNames.TokenEndpoint, Required = Required.Default)]
318-
public string TokenEndpoint { get; set; }
318+
public override string TokenEndpoint { get; set; }
319319

320320
/// <summary>
321321
/// Gets the collection of 'token_endpoint_auth_methods_supported'.

src/Microsoft.IdentityModel.Protocols.WsFederation/Configuration/WsFederationConfiguration.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,5 @@ public ICollection<KeyInfo> KeyInfos
4444
{
4545
get;
4646
} = new List<KeyInfo>();
47-
48-
/// <summary>
49-
/// Gets or sets token endpoint.
50-
/// </summary>
51-
public string TokenEndpoint
52-
{
53-
get;
54-
set;
55-
}
5647
}
5748
}

src/Microsoft.IdentityModel.Tokens/BaseConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@ public virtual ICollection<SecurityKey> SigningKeys
2323
{
2424
get;
2525
} = new Collection<SecurityKey>();
26+
27+
/// <summary>
28+
/// Gets or sets the token endpoint specified via the metadata endpoint.
29+
/// This can be the fed:SecurityTokenServiceType in WS-Federation, http://docs.oasis-open.org/wsfed/federation/v1.2/os/ws-federation-1.2-spec-os.html#:~:text=fed%3ASecurityTokenSerivceEndpoint
30+
/// Or the token_endpoint in the OIDC metadata.
31+
/// </summary>
32+
public virtual string TokenEndpoint { get; set; }
2633
}
2734
}

0 commit comments

Comments
 (0)