3 answers
- 10-1
Hello,
I have the same question as Shubana. We also have the SAML plugin installed and would like to be able to direct users to specific destinations rather than a single pre-configured location. Is there a built-in way to do this with the current plugin?
Hypothetical example of what I'm imaginging: https://my-adfs.biz/login?app=https://my-joget.biz/jw/web/json/plugin/org.joget.plugin.saml.SamlDirectoryManager/service?redirect=%2Fjw%2Fweb%2Fuserview%2FMy-APP%2Fv%2F_%2FMy-App-crud
where "redirect=" points to the final page destination.
Thanks,
JohnAdd your comment... - 10-1
Hi Andrew,
Thank you for highlighting on the requestParam do and dont's in email tool.
I am unable to use user notification because I have SAML authentication.
Is there any other way to direct the SAML users directly to the app instead of directing them to the landing page.
Add your comment... - 10-1
Hi
You can use this URL string in your email:
#request.scheme#://#request.serverName#:#request.serverPort##request.contextPath#/web/userview/appId/userviewId/_/approver_inbox .
You have to hardcode the "appId", "userviewId" and menu id "approver_inbox", unless you store these string value in your app (like a app setup form save with id='1') which you can then reference using these method:
#form.setup.appId[1]#
or use an environment variable to store the appId:
#envVariable.appId#
You won't be able to use #requestParam# in an email tool because the tool runs in the background and has no access to the browser's url. #requestParam# are mostly used on front facing forms running in a browser (interactive).
Do try out the User Notification plugin which will send and email to the assignee and auto insert the link for his task.
Reference: https://dev.joget.org/community/display/KBv5/Hash+Variable#HashVariable-RequestParameterHashVariable
Add your comment...
Dear Expert,
I have a landing page which contains all the apps. Upon login, it will direct the user to the landing page. And, user need to select the app which he/she would like to launch.
Below is my scenarios :
1) Upon submitting a form, approver receives an email(I'm using my own plugin as we need different the user's domain).
2) The link is given in the email (eg #request.scheme#://#request.serverName##request.contextPath#/web /userview/#requestParam.appId#/#requestParam.userviewId#/_/approver_inbox)
2) When approver clicks on the link, it brings the approver to the landing page.
My Question :
How do I customize the url to 'approver_inbox' directly instead of landing page ?