Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi,
My customer has a requirement, the user can manage one or more factories. If a user manage multiple factories then the user can select which factories he need to login in the login page, otherwise he don't need to choose factory . The home mashup page of different factory may be different or same .
So the login process would be :
I have lots of questions here:
Regards,
Sean
Solved! Go to Solution.
Hi @seanccc.
Part of this would have to be handled outside of ThingWorx. You might want to advise your customer that there is a greater security risk of exposing the list of factories before the authentication occurs.
However, regardless of the path you take, this is a much more involved solution than can be answered here. We recommend reaching out to Sales for engaging with our global services team for assistance.
Regards.
--Sharon
Hi @seanccc.
If you want the user to be able to select the factory prior to login, you would need to create a page outside of ThingWorx that would direct the user based on their selection.
Another option available within ThingWorx would be to set up a Master with links to each of the factories to allow the user to choose once they have logged in. Using the out of the box visibility permissions would allow you to limit visibility to only those factories a user has access to. If a user has access to only one factory, you should be able to include logic needed to automatically select it.
Please let us know if you have further questions.
Regards.
--Sharon
I've proposed the customer the same for the login solution, but customer don't like being able to switch factories only after logging in, this can be a feature after login in, but not the customer's core needs.
So, back to my questions, I think it's feasible to get the factory list before login outside the mashup and the remaining questions would be :
I found a helpful document : https://www.ptc.com/en/support/article/CS244163
For question #1, I probably may implement in the "authenticate" method.
For question #2 & #3, I still do not have clear idea , can I simply construct URL of the factory home mashup and call httpResponse.sendRedirect in "authenticate" method ? If doing so, will it cause the other authenticators get ignored ?
Regards,
Sean
Hi @seanccc.
Part of this would have to be handled outside of ThingWorx. You might want to advise your customer that there is a greater security risk of exposing the list of factories before the authentication occurs.
However, regardless of the path you take, this is a much more involved solution than can be answered here. We recommend reaching out to Sales for engaging with our global services team for assistance.
Regards.
--Sharon
Hi @seanccc.
If the previous response answered your question (even if it wasn't the answer you wanted), please mark it as the Accepted Solution for the benefit of others with the same question.
Thank you for participating in our community!
Regards.
--Sharon