cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

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

Ru
14-Alexandrite
14-Alexandrite

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 4
emscur
12-Amethyst
(To:Ru)

Hi @Ru,

 

  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
14-Alexandrite
14-Alexandrite
(To:emscur)

can you please suggest how i create logout service? 

slangley
23-Emerald II
(To:emscur)

Hi @122.

 

If you feel that one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Rocket_Max
17-Peridot
(To:Ru)

Hello @Ru 

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

 

 

Top Tags