Skip to main content
14-Alexandrite
September 28, 2020
Question

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

  • September 28, 2020
  • 2 replies
  • 1935 views

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...

2 replies

5-Regular Member
September 28, 2020

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_0114-AlexandriteAuthor
14-Alexandrite
September 29, 2020

can you please suggest how i create logout service? 

Rocket_Max
17-Peridot
September 29, 2020

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