Skip to content

Commit 0d5b1d4

Browse files
Add missing annotations
Add missing [NotNull] annotations to the Alipay and Notion handlers.
1 parent 5f13b91 commit 0d5b1d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AspNet.Security.OAuth.Alipay/AlipayAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private string GetRSA2Signature([NotNull] SortedDictionary<string, string> sorte
215215
}
216216

217217
/// <inheritdoc />
218-
protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
218+
protected override string BuildChallengeUrl([NotNull] AuthenticationProperties properties, [NotNull] string redirectUri)
219219
{
220220
var scopeParameter = properties.GetParameter<ICollection<string>>(OAuthChallengeProperties.ScopeKey);
221221
var scope = scopeParameter != null ? FormatScope(scopeParameter) : FormatScope();

src/AspNet.Security.OAuth.Notion/NotionAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public NotionAuthenticationHandler(
3232
{
3333
}
3434

35-
protected override async Task<OAuthTokenResponse> ExchangeCodeAsync(OAuthCodeExchangeContext context)
35+
protected override async Task<OAuthTokenResponse> ExchangeCodeAsync([NotNull] OAuthCodeExchangeContext context)
3636
{
3737
var tokenRequestParameters = new Dictionary<string, string>()
3838
{

0 commit comments

Comments
 (0)