Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

327 views 13 10
Read article

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