Hello,
after upgrading from Confluence DC 8.5 to 9.2, I cannot authenticate requests against my servlet app endpoint anymore using Basic Authentication, (likely) due to the recently introduced 2-step-verification.
When calling the servlet endpoint using a valid (admin) user with Basic Auth headers, I can see that the authentication gets invalidated after the first request in this log:
DEBUG [http-nio-8090-exec-5 url: /plugins/servlet/myendpoint]
[authentication.basicauth.filter.DisableBasicAuthFilter] invalidateSessionIfNativeLoginRestricted
Session for Basic Authentication will be invalidated because the 2SV-capable login mode is enabled
However, as far as I can see I do not even have 2-step-verification enabled in my instance.
After invalidation, subsequent requests are issued with the user "anonymous". This still works, but only if I put the @UnrestrictedAccess annotation onto my servlet, which obviously seems the wrong way to go.
PAT-based authentication is not affected by this and works fine. I know PAT is the recommended and preferred way to authenticate, but I would like to keep Basic Auth working if possible.
My main questions are:
Many thanks for your support!
Welcome to the community.
Documentation on manage-two-step-verification-for-your-atlassian-account
I'm not sure but it could be related to this Bug (JRASERVER-78386 )
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.