Jump to content
We've recently updated our Privacy Statement, available here ×

How to use custom role in sso in jasper


sanat_1

Recommended Posts

  • Using SSO to login to jasper.
  • Created ROLE_CHECK in jasper
  • Added 2 users (say user1 and user2) to ROLE_CHECK.
  • In the repository given administrator permission to the root folder to ROLE_CHECK.
  • Used below code is there in a class that extends EncryptionAuthenticationProcessingFilter.
GrantedAuthority grantedAuthority = new SimpleGrantedAuthority("ROLE_CHECK");List<GrantedAuthority> authorities = new LinkedList<>();authorities.add(grantedAuthority);UserDetails ud = new User(user, "", authorities);final CustomJasperAuthenticationToken customJasperAuthenticationToken = new CustomJasperAuthenticationToken(ud, "");return this.getAuthenticationManager().authenticate(customJasperAuthenticationToken);

 - While accessing the jasper page it is showing "Access Denied" message. 

Am I missing something. Why it is showing access denied though admin privilege has been given.

Link to comment
Share on other sites

  • 2 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

sso will create roles that are flagged as externally defined.   To map them into an internal role that you create in jasper you need to use the organization role map mapping functionality in the external authentication framework.  Please go to docs.tibco.com and look for the external authentcation cookbook for information on the framework and how it operates as well as customizing.

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...