diff --git a/HopFrame.Security/Authentication/HopFrameAuthentication.cs b/HopFrame.Security/Authentication/HopFrameAuthentication.cs index e688096..8232d4c 100644 --- a/HopFrame.Security/Authentication/HopFrameAuthentication.cs +++ b/HopFrame.Security/Authentication/HopFrameAuthentication.cs @@ -29,6 +29,8 @@ public class HopFrameAuthentication( protected override async Task HandleAuthenticateAsync() { var accessToken = Request.Cookies[ITokenContext.AccessTokenType]; + if (string.IsNullOrEmpty(accessToken)) accessToken = Request.Headers[SchemeName]; + if (string.IsNullOrEmpty(accessToken)) accessToken = Request.Headers["Token"]; if (string.IsNullOrEmpty(accessToken)) return AuthenticateResult.Fail("No Access Token provided"); var tokenEntry = await context.Tokens.SingleOrDefaultAsync(token => token.Token == accessToken);