When using the AuthFeature
is it possible to prevent it sending the ss-id
, ss-pid
, ss-opt
and X-UAId
cookies to the client?
We are using the JwtAuthProvider
to create session-less JWT tokens, and don’t want the extras cookies going to the client.
this is our current setup:
appHost.Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[]
{
new CustomCredentialsAuthProvider(appSettings)
{
SessionExpiry = lifetime,
},
new JwtAuthProvider(appSettings)
{
RequireSecureConnection = true,
AuthKeyBase64 = appSettings.GetString(JwtAuthNKeySetting),
SessionExpiry = lifetime,
},
})
{
HtmlRedirect = null,
HtmlLogoutRedirect = @"~/",
IncludeAssignRoleServices = false,
IncludeRegistrationService = false,
});