Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: SecurityContext is always null

  1. #1

    Default SecurityContext is always null

    In Pentaho 3.6, Spring security 2.0.5 has been integrated. as per the Spring security documents, Spring Security Context always available in the application where it has been integrated.

    Please look in this URL

    Although , I know this is as per new version of Spring Security but pattern is stills same.
    Actually , I need Spring Security Context available but whenever i try to get it . it gives me null..

    Object obj = SecurityContextHolder.getContext().getAuthentication().getPrincipal();

    if (obj instanceof UserDetails) {
    String username = ((UserDetails)obj).getUsername();
    } else {
    String username = obj.toString();
    Any Suggestion Please.

    I have used standard CAS SSO script that comes with 3.6 and i have done very basic tweaking for CAS proxy authentication.


  2. #2
    Join Date
    Oct 2006


    Need more information. For example, where is the code above? In a filter?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.