Hi.
Within the Java code of a Bitbucket Server plugin, I would like to get the user who is currently logged in to Bitbucket.
In another post related to Jira, I found this line:
User user = ComponentAccessor.getJiraAuthenticationContext().getUser().getDirectoryUser();
However this is for Jira, also it was 2013. There is apparently no such thing as ComponentAccessor in the Bitbucket libraries. Is there any similar way to achieve this in Bitbucket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.