Skip to content

Commit f19f3f3

Browse files
committed
Add clientId into the generate JWTs.
1 parent 9d14300 commit f19f3f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Authress.SDK/Client/AuthressClientTokenProvider.cs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public Task<string> GetBearerToken(string authressCustomDomainFallback = null)
145145
{
146146
{ "iss", GetIssuer(authressCustomDomainFallback) },
147147
{ "sub", accessKey.ClientId },
148+
{ "client_id", accessKey.ClientId },
148149
{ "exp", (int)Math.Floor(expiryDate.Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },
149150
{ "iat", (int)Math.Floor(now.Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },
150151
{ "nbf", (int)Math.Floor(now.Subtract(TimeSpan.FromMinutes(10)).Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },

0 commit comments

Comments
 (0)