It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

about confluence sso Edited

i have three application . SSO(CAS SSO) application sso.com, A application app.com,confluence application bpp.com,they deploy in different server.now A application login(login to SSO application) and save the cookie a  "Asession=***" ,and open new windows in browse or A redirection to confluence ,i override ConfluenceAuthenticator.(i want A redirection to B needn't login).

public class MySSOAuthenticator extends ConfluenceAuthenticator
{

    public static final String LOGIN_SOURCE = "MyCustomSSO";

    private static final Logger log = LoggerFactory.getLogger(ExampleSSOAuthenticator.class);

    public Principal getUser(HttpServletRequest request, HttpServletResponse response)
    {
       Cookie[] cookies = request.getCookies();
Enumeration headers= request.getHeaderNames();
//** i can't get the Asession from cookies or headers(has Iteration the cookies or headers)
String username =MySsoApi(asession) Principal existingUser = getUserFromSession(request); if (existingUser != null) { log.debug(String.format("User %s is already logged in.", existingUser.getName())); return existingUser; }

 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

227 views 3 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you