Is that possible to have a logout button in workshop?

My operational users are accessing a workshop application. They would like to be able to logout in order to switch account eventually.

Because they are in the workshop app, they do not have access to the Foundry logout button.

Thanks

I’m assuming it’s because you’re using &embedded=true at the end of your URL, so that the sidebar is not there. I think you have two things you can do:

  • Use Carbon to wrap your Workshop. It comes with a logout button in the top right corner.
  • Add a link to /multipass/api/logout in your workshop using the Markdown widget. I think that will just work!

The sidebar is not there because I am limiting the applications that my users are able to see and only give them access to Operational Applications. I do not want my users to have to go through Carbon so I direct them directly to a workshop app.

I implemented it with a button that points to a URL and that works.
It opens the logout page in a different window which is not ideal, but the user is logged out.

Thanks for the answer.

One way is to create a slate with only a “logout” button, and then embed it in Workshop.
By default, slate links open in the same tab. Hence you can workaround it.

In Slate:

You can make the CSS nicer of course. In my case, I at least put the coordinate of the html widget top left, so that it’s always visible. You can make it responsive to flex to the size of the page.

Then in Workshop, you can use the “iframe” widget to iframe your slate:

When clicking on the button, it will open in the same tab and disconnect the user.