Hi,
I try to add a button to logout in my plugin.
Which function can I use to logout the current user ?
Best regards,
Hello,
Try to use LoginManager.logout:
https://docs.atlassian.com/software/jira/docs/api/7.2.0/com/atlassian/jira/security/login/LoginManager.html
Thanks for your answer.
For the parameters of the method, I would like to return to the login page.
Can I juste past null for the two parameters?
No, you can not set nulls. You must call this function either in a servlet or something like this. When exactly do you want to have a user logged out?
Ok That's what I thought.
I made a modal which appears when the user is connected to the portal for the first time.
He had to accept, or he had to logout.
I had the button, the js function to call the rest API of my plugin and I have to logout my current user and redirect the user to the login page.
I hope that I'm clear.
It looks like you're new here. Sign in or register to get started.