Skip to content

Commit 3d41c94

Browse files
committed
update
1 parent a9f6a26 commit 3d41c94

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Microsoft.Azure.SignalR.Common/Auth/LocalTokenProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public LocalTokenProvider(
2424
AccessKey accessKey,
2525
string audience,
2626
IEnumerable<Claim> claims,
27-
AccessTokenAlgorithm? algorithm = null,
27+
AccessTokenAlgorithm algorithm = AccessTokenAlgorithm.HS256,
2828
TimeSpan? tokenLifetime = null)
2929
{
3030
_accessKey = accessKey ?? throw new ArgumentNullException(nameof(accessKey));
31-
_algorithm = algorithm ?? AccessTokenAlgorithm.HS256;
31+
_algorithm = algorithm;
3232
_audience = audience;
3333
_claims = claims;
3434
_tokenLifetime = tokenLifetime ?? Constants.Periods.DefaultAccessTokenLifetime;

src/Microsoft.Azure.SignalR.Common/Interfaces/IAccessTokenProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Microsoft.Azure.SignalR
77
{
8-
public interface IAccessTokenProvider
8+
internal interface IAccessTokenProvider
99
{
1010
Task<string> ProvideAsync();
1111
}

src/Microsoft.Azure.SignalR/EndpointProvider/ServiceEndpointProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public IAccessTokenProvider GetServerAccessTokenProvider(string hubName, string
7373
}
7474
else
7575
{
76-
throw new NotSupportedException("Unsupported auth type.");
76+
throw new NotSupportedException("Access key cannot be null.");
7777
}
7878
}
7979

0 commit comments

Comments
 (0)