Browse Source

Fix token.

pull/346/head
Sebastian Stehle 7 years ago
parent
commit
2981a5b030
  1. 4
      src/Squidex.Infrastructure/Security/Extensions.cs

4
src/Squidex.Infrastructure/Security/Extensions.cs

@ -19,14 +19,14 @@ namespace Squidex.Infrastructure.Security
if (!string.IsNullOrWhiteSpace(subjectId))
{
return new RefToken(subjectId, RefTokenType.Subject);
return new RefToken(RefTokenType.Subject, subjectId);
}
var clientId = principal.OpenIdClientId();
if (!string.IsNullOrWhiteSpace(clientId))
{
return new RefToken(clientId, RefTokenType.Client);
return new RefToken(RefTokenType.Client, clientId);
}
return null;

Loading…
Cancel
Save