<p>Component documentation fix</p>
<br/><p><strong>1 Overview</strong></p>
<p>Amway ID supports Logout as a component to integrate anywhere in your app, to invalidate the session.</p>
<p><strong>2 Getting Started with the AmwayID Logout component</strong></p>
<p>This is a Getting Started section for the AmwayID Logout. It contains information about importing and running the component.</p>
<p>For information about the Dynamic Usage, Properties, Events, and APIs of the component, you can visit the Reference Section.</p>
<p>Before you start using the logout component, make sure that you meet all the requirements in the Prerequisites.</p>
<p><strong>3 Prerequisites</strong></p>
<ul>
<li>A <a href="https://manage.kony.com/">Kony account</a></li>
<li>Kony Visualizer V8 SP4, or higher</li>
</ul>
<p>Before you can begin, logout URL is required to implement this solution:</p>
<ol>
<li>Make sure that you have proper configurations for logout at Mobile Fabric App (i.e. logout URL and revoke URL).</li>
<li>You will need to work with an Amway ID technical member to determine the correct logout URL.</li>
</ol>
<p><strong>3.1 Source Code</strong></p>
<p>The component source can be found at <a href="https://github.com/AmwayACS/AmwayIDNativeLogin">https://github.com/Amway...
<p><strong>4 Importing the Component</strong></p>
<p>Before you start importing the component to Kony Visualizer, you must download the component from the Amway Marketplace website. You can import the marketplace components only into the apps that are of the Kony Reference Architecture type.</p>
<p>To import the AmwayID Logout component, do the following:</p>
<ol>
<li>Open your app project in Kony Visualizer.</li>
<li>On the File menu, point to Import, and click Component to Library. The Open dialog appears.</li>
<li>Navigate to the location where you downloaded the component (zip file) on your computer, select the component, and click Open. After Visualizer downloads the component, it opens a window that asks you to enter the metadata for the component.</li>
</ol>
<p>Enter a Library Name, a Collection Name, and a Description if you require one.</p>
<ul>
<li><strong>Library Name -</strong> A Library contains component collections and skins. The Library Name specifies the library that you want to import the component into. If the library does not exist, Visualizer will create a new one.<br />
As an example, let us name the Library as <strong>AmwayID</strong>.</li>
<li><strong>Collection Name -</strong> A collection contains multiple components. The Collection Name specifies the collection that you want to import the component into. If the collection does not exist in the specified library, Visualizer will create a new one.<br />
As an example, let us name the Collection as <strong>Logout</strong>.</li>
<li><strong>Component Name</strong> - This name specifies the display name you want to use for the component in Visualizer.<br />
By default, the component name is <strong>com.alticor.logout</strong> .</li>
<li>After you import the component, you can drag and drop it from the Collection Library onto your form.</li>
</ul>
<p>Save the form now.</p>
<p>After you add the component to a form, you need to configure the native settings of your project. You can refer to the following sections for more information.</p>
<p><strong>4.1 Configuring Component Properties</strong></p>
<p>You can use a component's Properties to customize and configure the elements. These elements can be UI elements, service parameters, and so on. For more information about properties, you can refer to the <a href="https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Defau... target="_blank">Components Overview</a> section of the Visualizer User Guide.</p>
<p>You can set the properties from the <strong>Properties</strong> panel on the right side of Visualizer. You can also configure these properties using JavaScript code.</p>
<p><strong>4.2 Setting Properties</strong></p>
<p><strong>Logout Button isVisible</strong></p>
<p><strong>Description:</strong></p>
<p>Enable/Disable Visibility of default logout button or will use your own custom button.</p>
<p><strong>Syntax:</strong> logoutBtnIsVisible</p>
<p><strong>Type:</strong> Boolean</p>
<p><strong>Read/Write:</strong> Write</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.logoutBtnIsVisible = true;</p>
<p><strong>Identity Service Name</strong></p>
<p><strong>Description:</strong></p>
<p>The Identity service name which we have defined in MF App.</p>
<p><strong>Syntax:</strong> identityServiceID</p>
<p><strong>Type:</strong> String</p>
<p><strong>Read/Write:</strong> Write</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.identityServiceID = "QAAmwayIDAuthService ";</p>
<p><strong>Client AppName</strong></p>
<p><strong>Description:</strong></p>
<p>The clientapp identifier of the destination application.</p>
<p>Do not use the native app's clientapp here; instead, use the clientapp used by the application you are going to.</p>
<p><strong>Syntax:</strong> clientAppName</p>
<p><strong>Type:</strong> String</p>
<p><strong>Read/Write:</strong> Write</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.clientAppName = "konypocv2";</p>
<p><strong>Loading Indicator Skin</strong></p>
<p><strong>Description:</strong></p>
<p>Loading Indicator Skin to match with app loading indicator skin.</p>
<p><strong>Syntax:</strong> loadingIndSkin</p>
<p><strong>Type:</strong> String</p>
<p><strong>Read/Write:</strong> Write</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.loadingIndSkin = "sknLoadingIndicator";</p>
<p><strong>4.3 <a href="javascript:void(0);">Building and Running your app</a></strong></p>
<p>After performing all the above steps, you can perform either of the following tasks:</p>
<p>Build and Publish your app (Visualizer Enterprise)</p>
<p>For more information, you can refer to the <a href="http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Defaul... target="_blank">Building and Viewing an Application</a> section of the Visualizer User Guide.</p>
<p><strong>5 APIs</strong></p>
<p><strong>5.1 Logout Events</strong></p>
<p>5.1.1 onLogoutSuccess</p>
<p><strong>Description:</strong></p>
<p>Its Logout success callback where need to write business logic what to do after successful logout.</p>
<p><strong>Syntax:</strong> onLogoutSuccess()</p>
<p><strong>Parameters:</strong> None.</p>
<p><strong>Return Value:</strong> None.</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.onLogoutSuccess = this.onLogoutSuccess;</p>
<p> Ex: onLogoutSuccess : function (){</p>
<p> var ntf = new kony.mvc.Navigation("GCLogin");</p>
<p> ntf.navigate({"isReqFromLogout" : true});</p>
<p> kony.application.destroyForm("frmHome");</p>
<p> },</p>
<p>5.1.2 onLogoutFailure</p>
<p><strong>Description:</strong></p>
<p>Its Logout Failure callback where need to write business logic what to do if logout fails.</p>
<p><strong>Syntax:</strong> onLogoutFailure()</p>
<p><strong>Parameters:</strong> None.</p>
<p><strong>Return Value:</strong> None.</p>
<p><strong>Example:</strong></p>
<p>this.view.logout.onLogoutFailure = this.onLogoutFailure;</p>
<p> Ex: onLogoutFailure : function(){</p>
<p> kony.print("Logout failed...");</p>
<p> },</p>
<p><strong>6 External Links</strong></p>
<p>Please find the <strong>confluence</strong> link <a href="https://jira.amway.com:8444/display/GIW/Logout+Component">here</a></p>