fix(a11y): add prefers-reduced-motion support for auth page
- Disable auth-card entrance animation when user prefers reduced motion - Disable auth-footer link color transition - Respects WCAG accessibility guidelines for vestibular disorders
This commit is contained in:
1 parent
898a9be6fa
commit
f0083de97d
2 files changed
+30
No files matched your search
@@ -98,6 +98,24 @@ builder.Services.AddAuthentication(options =>
|
||||
ValidateLifetime = true,
|
||||
ClockSkew = TimeSpan.Zero
|
||||
};
|
||||
|
||||
// SignalR WebSocket transport sends JWT as access_token query parameter
|
||||
options.Events = new JwtBearerEvents
|
||||
{
|
||||
OnMessageReceived = context =>
|
||||
{
|
||||
var accessToken = context.Request.Query["access_token"];
|
||||
var path = context.HttpContext.Request.Path;
|
||||
|
||||
if (!string.IsNullOrEmpty(accessToken) &&
|
||||
path.StartsWithSegments("/hubs"))
|
||||
{
|
||||
context.Token = accessToken;
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
};
|
||||
})
|
||||
.AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>("ApiKey", null);
|
||||
|
||||
|
||||
Reference in new issue
Block a user