Custom authenticator

We are tring to create custom Authenticator for Confluence.
We created custom authenticator, custom login filter and edit xml files.
Users can not login system and not take any error.
Log file contains succesfull authentication message firstly,however, it is constantly trying to be logged in.
How we can solve this error?


2013-02-26 03:36:11,275 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : '12345678901' and password provided - remember me : true - attempting login request
2013-02-26 03:36:11,276 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' does not require elevated security check.  Attempting authentication...
2013-02-26 03:36:11,364 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] login login : '12345678901' has been authenticated
2013-02-26 03:36:11,366 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] authoriseUserAndEstablishSession authoriseUser : '12345678901' can login according to the RoleMapper
2013-02-26 03:36:11,369 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' was successfully authenticated
2013-02-26 03:36:11,373 DEBUG [http-8090-3] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for '12345678901' - os_authstatus = 'success'
2013-02-26 03:36:11,374 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/default.jsp)
2013-02-26 03:36:11,374 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,376 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be '12345678901'
2013-02-26 03:36:11,379 DEBUG [http-8090-3] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:11,380 DEBUG [http-8090-3] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie No cookie was found with name :confluence-language
2013-02-26 03:36:11,380 DEBUG [http-8090-3] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/homepage.action'
2013-02-26 03:36:11,381 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : '12345678901' and password provided - remember me : true - attempting login request
2013-02-26 03:36:11,382 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' does not require elevated security check.  Attempting authentication...
2013-02-26 03:36:11,468 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] login login : '12345678901' has been authenticated
2013-02-26 03:36:11,469 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] authoriseUserAndEstablishSession authoriseUser : '12345678901' can login according to the RoleMapper
2013-02-26 03:36:11,511 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' was successfully authenticated
2013-02-26 03:36:11,518 DEBUG [http-8090-3] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for '12345678901' - os_authstatus = 'success'
2013-02-26 03:36:11,519 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/homepage.action)
2013-02-26 03:36:11,521 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,522 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be '12345678901'
2013-02-26 03:36:11,542 DEBUG [http-8090-3] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:11,543 DEBUG [http-8090-3] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie No cookie was found with name :confluence-language
2013-02-26 03:36:11,544 DEBUG [http-8090-3] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/dashboard.action'
2013-02-26 03:36:11,544 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : '12345678901' and password provided - remember me : true - attempting login request
2013-02-26 03:36:11,545 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' does not require elevated security check.  Attempting authentication...
2013-02-26 03:36:11,635 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] login login : '12345678901' has been authenticated
2013-02-26 03:36:11,636 DEBUG [http-8090-3] [atlassian.seraph.auth.DefaultAuthenticator] authoriseUserAndEstablishSession authoriseUser : '12345678901' can login according to the RoleMapper
2013-02-26 03:36:11,666 DEBUG [http-8090-3] [atlassian.seraph.filter.PasswordBasedLoginFilter] runAuthentication runAuthentication : '12345678901' was successfully authenticated
2013-02-26 03:36:11,669 DEBUG [http-8090-3] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for '12345678901' - os_authstatus = 'success'
2013-02-26 03:36:11,670 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/dashboard.action)
2013-02-26 03:36:11,671 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,672 DEBUG [http-8090-3] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be '12345678901'
2013-02-26 03:36:11,831 DEBUG [http-8090-1] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:11,832 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/default.jsp'
2013-02-26 03:36:11,832 DEBUG [http-8090-1] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : No user name or password was returned. No authentication attempt will be made.  User may still be found via a SecurityFilter later.
2013-02-26 03:36:11,833 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for 'null' - os_authstatus = 'null'
2013-02-26 03:36:11,833 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/default.jsp)
2013-02-26 03:36:11,834 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,834 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be 'anonymous '
2013-02-26 03:36:11,837 DEBUG [http-8090-1] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:11,839 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/homepage.action'
2013-02-26 03:36:11,839 DEBUG [http-8090-1] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : No user name or password was returned. No authentication attempt will be made.  User may still be found via a SecurityFilter later.
2013-02-26 03:36:11,840 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for 'null' - os_authstatus = 'null'
2013-02-26 03:36:11,840 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/homepage.action)
2013-02-26 03:36:11,841 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,841 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be 'anonymous '
2013-02-26 03:36:11,848 DEBUG [http-8090-1] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:11,849 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/login.action?os_destination=%2Fhomepage.action'
2013-02-26 03:36:11,850 DEBUG [http-8090-1] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : No user name or password was returned. No authentication attempt will be made.  User may still be found via a SecurityFilter later.
2013-02-26 03:36:11,851 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for 'null' - os_authstatus = 'null'
2013-02-26 03:36:11,851 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/login.action?os_destination=%2Fhomepage.action)
2013-02-26 03:36:11,851 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:11,852 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be 'anonymous '
2013-02-26 03:36:12,198 DEBUG [http-8090-1] [atlassian.seraph.cookie.DefaultCookieHandler] getCookie Looking for a cookie named : 'confluence-language'
2013-02-26 03:36:12,200 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : ____ Attempting login for : '/rest/prototype/1/i18n?locale=en_GB&pluginKeys=com.atlassian.confluence.keyboardshortcuts&pluginKeys=com.atlassian.plugins.editor'
2013-02-26 03:36:12,201 DEBUG [http-8090-1] [atlassian.seraph.filter.PasswordBasedLoginFilter] login login : No user name or password was returned. No authentication attempt will be made.  User may still be found via a SecurityFilter later.
2013-02-26 03:36:12,201 DEBUG [http-8090-1] [atlassian.seraph.filter.BaseLoginFilter] doFilter doFilter : Login completed for 'null' - os_authstatus = 'null'
2013-02-26 03:36:12,202 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Storing the originally requested URL (atlassian.core.seraph.original.url=/rest/prototype/1/i18n?locale=en_GB&pluginKeys=com.atlassian.confluence.keyboardshortcuts&pluginKeys=com.atlassian.plugins.editor)
2013-02-26 03:36:12,202 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : requiredRoles = []
2013-02-26 03:36:12,203 DEBUG [http-8090-1] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be 'anonymous '

1 answer

1 vote
Colin Goudie Community Champion Feb 25, 2013

Probably other parts of Confluence are making requests and your Authentication serlvet should probably just ignore them?

e.g. I see a /rest/prototype/1/i18n call. Guessing that isn't you?

How we can get username from header and login directly with this username to confluence?

All users will be stored on confluence.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

46 views 3 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you