Skip to main content
Sep 28, 2020 8:39 AM UTC
Question

how i show login page after clicking on logout button widget?

i have one mashup which is my login page and i want to open that login page after clicking on logout button widget.

please suggest how i assign home mashup to logout button widget?

refer below attachment for better understand...

4 replies

Sep 28, 2020 3:28 PM UTC

Hi @Ru_01,

 

  1. Create a logout service
  2. Create a button widget and bind Clicked event to call the logout service
  3. Create a Navigation function
    • Set the Target Mashup to the login page mashup
  4. Bind ServiceInvokeCompleted of logout service to Navigate action of Navigation function

 

This will redirect users to the login page after clicking the button.

 

Thanks,

Emmanuel

Ru_01Author
Sep 29, 2020 3:56 AM UTC

can you please suggest how i create logout service? 

Sep 29, 2020 6:09 AM UTC

Hello @Ru_01 

I have tested according to the steps of first reply ​​, but found that after disconnecting the session, when the login page is redirected, the system will immediately require identity authentication, which cannot meet your need. Maybe my test is incorrect. If there is a Demo, it will be perfect.

 

I have an idea for your reference:

  1. add services TerminateUserSessions of CurrentSessionInfo
  2. add button in logout mashup and add link in login mashup
  3. button trigger TerminateUserSessions
  4. CurrentSessionInfo trigger link

important: Link need bypass Authentication refer to https://www.ptc.com/en/support/article/CS227935

 

So far, you can achieve the following: After clicking the button on logout mashup , the session will be disconnected, while the authentication will be bypassed, and the page will jump directly to the login mashup.

 

 

BR,

Max