Project

General

Profile

Navigating between multiple Wt Applications

Added by Bert Cuypers over 4 years ago

Hi all,

I have developed several applications in Wt, and would now like to develop a master login application. The general idea is that when a user has been successfully authenticated in this master application, it has the ability to choose one of the currently existing applications. Once it has chosen one, the user will be re-routed to the correct application. This part is easy to implement.

However, I would like to auto-login the user in the second application; is there a (simple?) way to achieve this? We also would like the possibility to navigate from the second application back to the master application. I assume that when we do this, the session will have already been killed by Wt, so a new session will be created.

The idea is that we can put one of the applications in maintenance, while the other ones can still work as expected.

Thanks in advance,

Bert


Replies (3)

RE: Navigating between multiple Wt Applications - Added by Ockert van Schalkwyk over 4 years ago

I'm new to Wt, but think its awesome. In my day to day work we use some other web frameworks, and we sometimes uses iframes for this, where the main application renders an iframe in its contents. You have the additional benifit of communicating in and out of the iframe as well, this is perhaps something to look into

RE: Navigating between multiple Wt Applications - Added by lm at over 4 years ago

I meant to mention quite a while ago that the thing you're looking for is called single-sign on, and is usually implemented through OAUTH 2 these days. It's not trivial, and I'm sure you could hack something simpler (and surely less secure) together. I have no experience with doing this with Wt.

RE: Navigating between multiple Wt Applications - Added by Wim Dumon over 4 years ago

OAuth2 is indeed the way to implement this, and Wt implements both the identity provider and the client. The example demonstrating this functionality is in examples/feature/oidc.

Wim.

    (1-3/3)