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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
Highlighted

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 Cloud

Please tell us how you use Confluence space settings

👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...

167 views 5 6
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