@@ -14,7 +14,7 @@ public class SignedHttpRequestCreationParameters
1414 /// Gets or sets a value indicating whether the <see cref="ConfirmationClaimTypes.Cnf"/> claim should be created and added or not.
1515 /// </summary>
1616 /// <remarks>
17- /// <see cref="SignedHttpRequestDescriptor.CnfClaimValue"/> will be used as a "cnf" claim value, if set.
17+ /// <see cref="SignedHttpRequestDescriptor.CnfClaimValue"/> will be used as a "cnf" claim value, if set.
1818 /// Otherwise, a "cnf" claim value will be derived from <see cref="SignedHttpRequestDescriptor.SigningCredentials"/>.
1919 /// </remarks>
2020 public bool CreateCnf { get ; set ; } = true ;
@@ -27,19 +27,19 @@ public class SignedHttpRequestCreationParameters
2727 /// <summary>
2828 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.Ts"/> claim should be created and added or not.
2929 /// </summary>
30- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
30+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
3131 public bool CreateTs { get ; set ; } = true ;
3232
3333 /// <summary>
3434 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.M"/> claim should be created and added or not.
3535 /// </summary>
36- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
36+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
3737 public bool CreateM { get ; set ; } = true ;
3838
3939 /// <summary>
4040 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.U"/> claim should be created and added or not.
4141 /// </summary>
42- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
42+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
4343 public bool CreateU { get ; set ; } = true ;
4444
4545 /// <summary>
@@ -51,19 +51,19 @@ public class SignedHttpRequestCreationParameters
5151 /// <summary>
5252 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.Q"/> claim should be created and added or not.
5353 /// </summary>
54- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
54+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
5555 public bool CreateQ { get ; set ; }
5656
5757 /// <summary>
5858 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.H"/> claim should be created and added or not.
5959 /// </summary>
60- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
60+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
6161 public bool CreateH { get ; set ; }
6262
6363 /// <summary>
6464 /// Gets or sets a value indicating whether the <see cref="SignedHttpRequestClaimTypes.B"/> claim should be created and added or not.
6565 /// </summary>
66- /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
66+ /// <remarks>https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3</remarks>
6767 public bool CreateB { get ; set ; }
6868
6969 /// <summary>
@@ -76,5 +76,17 @@ public class SignedHttpRequestCreationParameters
7676 /// </summary>
7777 /// <remarks>Allows for adjusting the local time so it matches a server time.</remarks>
7878 public TimeSpan TimeAdjustment { get ; set ; } = DefaultTimeAdjustment ;
79+
80+ #if SUPPORTS_TIME_PROVIDER
81+ #nullable enable
82+ /// <summary>
83+ /// Gets or sets the time provider.
84+ /// </summary>
85+ /// <remarks>
86+ /// If not set, fall back to using the <see cref="DateTime"/> class to obtain the current time.
87+ /// </remarks>
88+ public TimeProvider ? TimeProvider { get ; set ; }
89+ #nullable restore
90+ #endif
7991 }
8092}
0 commit comments