Hello,
Try to use LoginManager.logout:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just an information, I use the Ultimate theming plugin to add js to portals
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, I see. I am not familiar with this plugin. You should ask the developers of the plugin on how you can use the Java Api. Or if it is JS, just make the same request, which is created, when you use the logout button in Jira. Open the Developer Tools in your browser and have a look at what request is made, when you logout. And repeat this request in your JS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I use the rest API using the url : '/rest/auth/1/session', directly from my js file.
Thank for all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.