Implemented: Navigate from a domain to another with automated signed in

authentication
(OFBIZ-10307)

This uses a JWT Token authentication to get from one domain, where you are 
signed in, to another domain where you get signed in automatically. 
Something like ExternalLoginKey or Tomcat SSO, but not on the same domain.

In the example component, the FormWidgetExamples screen contains 2 new fields 
in the LinksExampleForm which demonstrate the use from a local instance to the
trunk demo instance.

A simple documentation is available in 
  framework\webapp\src\docs\asciidoc\_include\wa-cross-domains-SSO.adoc

Thanks: Taher for review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1844880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2018-10-26 09:32:46 +00:00
parent 0cd8756918
commit 7f6b866ccf
2 changed files with 20 additions and 6 deletions
@@ -424,6 +424,9 @@ under the License.
<!-- ************************ -->
<!-- *** Layered-modal *** -->
<!-- ************************ -->
<actions>
<set field="targetUrl" value="javascript:sendJWT('${webappName}', 'https://demo-trunk.ofbiz.apache.org/content/control/main')"/>
</actions>
<field name="emptyField0" title=" "><display/></field>
<field name="newExample" title=" " widget-area-style="smallSubmit" position="1">
<hyperlink description="${uiLabelMap.ExampleNewExample} (Layered-modal)" target="EditExampleLayer" also-hidden="false" link-type="layered-modal"/>
@@ -431,8 +434,11 @@ under the License.
<field name="deleteLink" title="${uiLabelMap.FormFieldTitle_confirmButton} ${uiLabelMap.ExampleExample}" widget-style="buttontext">
<hyperlink description="${uiLabelMap.CommonDelete}" target="FormWidgetExamples" also-hidden="false" confirmation-message="Are you sure you want to perform this action?"/>
</field>
</form>
<field name="targetUrlButton" title="${uiLabelMap.SignedInAuthToAnotherDomain}" widget-style="buttontext">
<hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.TargetURL}" target="${targetUrl}"/>
</field>
</form>
<form name="MaskFieldExampleForm" type="single">
<field name="maskField" title="${uiLabelMap.ExampleField}"><text mask='a*-999-a999'/></field>
</form>