A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Using Optimizely CMS 12, how can I in code that's being run in a scheduled job tell if the job was triggered manually in the CMS UI or by the scheduler?
In "the old days" we did this by checking if
PrincipalInfo.CurrentPrincipal.Identity?.IsAuthenticatedwas true or not but I can't find a similar way to do this in newer versions of the CMS.I've tried using the
IHttpContextAccessorbutHttpContextis alwaysnull, unless I'm doing something wrong.Does anyone know a solution to this problem?
Best regards
Martin