@Secure doesn’t work for websocket in pac4j-play how do i secure a websocket in java pac4j play
thanks
this what i don now
if (!profilesHelper.getProfilesWithHeader(request).isEmpty()) {
UserProfile profile = profilesHelper.getProfilesWithHeader(request).get(0);
// Check if the user is authorized
if (profile.getRoles().contains("ROLE_USER")) {
try {
return CompletableFuture.completedFuture(
F.Either.Right(createFlowForActor(request)));
} catch (Exception throwable) {
logger.warn(throwable.getStackTrace().toString());
}
}
}
return CompletableFuture.completedFuture(F.Either.Left(forbidden()));
how manually you do secure in pac4j without using anotations