- CmsAuthUtils.addAuthorization(subject, authorization,
- (HttpServletRequest) sharedState.get(CmsAuthUtils.SHARED_STATE_HTTP_REQUEST));
- if (log.isDebugEnabled())
- log.debug("Anonymous logged in to CMS: " + subject);
+ RemoteAuthRequest request = (RemoteAuthRequest) sharedState.get(CmsAuthUtils.SHARED_STATE_HTTP_REQUEST);
+ Locale locale = Locale.getDefault();
+ if (request != null)
+ locale = request.getLocale();
+ CmsAuthUtils.addAuthorization(subject, authorization);
+ CmsAuthUtils.registerSessionAuthorization(request, subject, authorization, locale);
+ if (log.isTraceEnabled())
+ log.trace("Anonymous logged in to CMS: " + subject);