Downloadable Asset: 
Developer Guide Documentation: 
Asset Version: 
1.0.2
Asset Description: 
Amway ID supports Logout as a component to integrate anywhere in your app, to invalidate the session.
Details: 

<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&nbsp;AmwayID Logout&nbsp;component</strong></p>

<p>This is a Getting Started section for the&nbsp;AmwayID Logout. It contains information about importing and running the component.</p>

<p>For information about the&nbsp;Dynamic Usage, Properties, Events, and APIs of the component, you can visit the&nbsp;Reference Section.</p>

<p>Before you start using the&nbsp;logout&nbsp;component, make sure that you meet all the requirements in the&nbsp;Prerequisites.</p>

<p><strong>3 Prerequisites</strong></p>

<ul>
<li>A&nbsp;<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&nbsp;<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&nbsp;Amway Marketplace&nbsp;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&nbsp;File&nbsp;menu, point to&nbsp;Import, and click&nbsp;Component to Library. The&nbsp;Open&nbsp;dialog appears.</li>
<li>Navigate to the location where you downloaded the component (zip file) on your computer, select the component, and click&nbsp;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&nbsp;Library Name, a&nbsp;Collection Name, and a&nbsp;Description&nbsp;if you require one.</p>

<ul>
<li><strong>Library Name&nbsp;-</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&nbsp;<strong>AmwayID</strong>.</li>
<li><strong>Collection Name&nbsp;-</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&nbsp;<strong>Logout</strong>.</li>
<li><strong>Component Name</strong>&nbsp;- This name specifies the display name you want to use for the component in Visualizer.<br />
By default, the component name is&nbsp;<strong>com.alticor.logout</strong>&nbsp;.</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&nbsp;<a href="https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Defau... target="_blank">Components Overview</a>&nbsp;section of the Visualizer User Guide.</p>

<p>You can set the properties from the&nbsp;<strong>Properties</strong>&nbsp;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>&nbsp;logoutBtnIsVisible</p>

<p><strong>Type:</strong>&nbsp;Boolean</p>

<p><strong>Read/Write:</strong>&nbsp;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>&nbsp;identityServiceID</p>

<p><strong>Type:</strong>&nbsp;String</p>

<p><strong>Read/Write:</strong>&nbsp;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&nbsp;destination&nbsp;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>&nbsp;clientAppName</p>

<p><strong>Type:</strong>&nbsp;String</p>

<p><strong>Read/Write:</strong>&nbsp;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>&nbsp;loadingIndSkin</p>

<p><strong>Type:</strong>&nbsp;String</p>

<p><strong>Read/Write:</strong>&nbsp;Write</p>

<p><strong>Example:</strong></p>

<p>this.view.logout.loadingIndSkin = "sknLoadingIndicator";</p>

<p><strong>4.3&nbsp;<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&nbsp;(Visualizer Enterprise)</p>

<p>For more information, you can refer to the&nbsp;<a href="http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Defaul... target="_blank">Building and Viewing an Application</a>&nbsp;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>&nbsp;onLogoutSuccess()</p>

<p><strong>Parameters:</strong>&nbsp;None.</p>

<p><strong>Return Value:</strong>&nbsp;None.</p>

<p><strong>Example:</strong></p>

<p>this.view.logout.onLogoutSuccess = this.onLogoutSuccess;</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ex: onLogoutSuccess : function (){</p>

<p>&nbsp;&nbsp;&nbsp; var ntf = new kony.mvc.Navigation("GCLogin");</p>

<p>&nbsp;&nbsp;&nbsp; ntf.navigate({"isReqFromLogout" : true});</p>

<p>&nbsp;&nbsp;&nbsp; kony.application.destroyForm("frmHome");</p>

<p>&nbsp; },</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>&nbsp;onLogoutFailure()</p>

<p><strong>Parameters:</strong>&nbsp;None.</p>

<p><strong>Return Value:</strong>&nbsp;None.</p>

<p><strong>Example:</strong></p>

<p>this.view.logout.onLogoutFailure = this.onLogoutFailure;</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ex: onLogoutFailure : function(){</p>

<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kony.print("Logout failed...");</p>

<p>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },</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>

Supported App Types: 
Supported Devices: 
Supported Platforms: 
Platform Version: 
Asset Requirements: 
Visualizer Enterprise
MobileFabric
Status: 
Approved
Title Approved: 
Title Review: 
Body Approved: 
Body Review: 
Asset Display View Approved: 
Asset Display View Review: 
Detail View Images/Video Approved: 
Detail View Images/Video Review: 
Developers Guide Documentation Approved: 
Developers Guide Documentation Review: 
Additional Notes: 
Asset Review Status: 
Approved
Use iPhone Wrapper: 
Use iFrame: 
Item Guid: 
d284c688f54a4ca7aadf33136b33209a
Item Kuid: 
u175563a0caa4786a5d788e1958272a8
Is NFI: