Allow website visitors to log out of the portal with your own button

Do you use the Mysolution portal via an inline frame on your own website? From now on, you can manage the portal logout process yourself with an xhttp request. MSR-990 | Sep 2024

Who is this feature for?

Organizations that use the Mysolution portal integrated into a self-built website via inline frames.

 

Benefits for you as a user

  • Improved portal support within inline frames. 

Explanation of this new feature

If you use the Mysolution portal via an inline frame on your self-built website, you can now fully control the logout process with your own xhttp request. This means that a Logout button on your website can also ensure that the visitor is logged out of the Mysolution portal.

To enable this, a new setting has been created in Custom Metadata Types, Portal Domain: 'Allowed CORS origins'. Here, you can set the URL of your own domain.  

For example, if your domain name is 'mijnwebsite.nl' and you use the Mysolution portal 'https://kandidaatportal.mysolutionflex.nl' in an inline frame,  

to allow a candidate to log out of the Mysolution portal you would enter the following in 'Allowed CORS origins':

https://www.mijnwebsite.nl  

After you refresh the portal configuration, the logout request to the Mysolution portal is allowed from this registered URL. 

Feature Implementation Time

  • Simple implementation: < 1 hour

This is mainly for the web developer to create the xhttp request.

Setup

Below is the example code for the xhttp request. Replace the example URL (https://kandidaatportal.mysolutionflex.nl) with the URL of your Mysolution portal:

 

var xhttp = new XMLHttpRequest();
xhttp.open("GET", "https://kandidaatportal.mysolutionflex.nl/account/logout", true);
xhttp.withCredentials = true;
xhttp.send();
 

NOTE: It is important to include the 'withCredentials' parameter set to 'true'. Without this, the logout will not work.


🔗 Here you can find the key features from the September 2024 Release