<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lashini Jayasekara on Medium]]></title>
        <description><![CDATA[Stories by Lashini Jayasekara on Medium]]></description>
        <link>https://medium.com/@lashinisharikaj?source=rss-4b4191cdcd4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_6FCuZjQ2uwEJ3O0</url>
            <title>Stories by Lashini Jayasekara on Medium</title>
            <link>https://medium.com/@lashinisharikaj?source=rss-4b4191cdcd4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:55:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lashinisharikaj/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating iProov with Asgardeo]]></title>
            <link>https://medium.com/@lashinisharikaj/integrating-iproov-with-asgardeo-4f10d31f0067?source=rss-4b4191cdcd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f10d31f0067</guid>
            <category><![CDATA[mfa]]></category>
            <category><![CDATA[iproov]]></category>
            <category><![CDATA[asgardeo]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[facial-biometric]]></category>
            <dc:creator><![CDATA[Lashini Jayasekara]]></dc:creator>
            <pubDate>Wed, 29 May 2024 12:18:33 GMT</pubDate>
            <atom:updated>2024-06-03T03:01:44.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHfOFjJbQxOIiS2SPSuL9Q.jpeg" /></figure><p>In today’s digital landscape, ensuring the security of sensitive data requires a sophisticated, multi-layered approach, with multi-factor authentication (MFA) serving as a cornerstone. Asgardeo, an identity and access management (IAM) solution, empowers organizations with its robust MFA capabilities. In this comprehensive guide, we’ll explore the seamless integration of iProov authentication into your applications via Asgardeo, fortifying security through innovative facial bio-metrics.</p><h4>Introduction to iProov</h4><p>For those unfamiliar, iProov revolutionizes authentication with its password-less solution, leveraging facial bio-metrics. Through its cutting-edge Flashmark technology, iProov distinguishes real users from potential threats like spoofs or replays, ensuring both security and user convenience.</p><h4><strong>Configuring and Integrating iProov with Asgardeo</strong></h4><p>First and foremost, you need access to the iProov portal. If you haven’t already, reach out to <a href="https://www.iproov.com/about-us/contact-us">iProov</a> to get started.</p><h4>Create a service provider in iProov</h4><p>You can follow <a href="https://docs.iproov.com/docs/Content/ImplementationGuide/iportal/create-service-providers.htm">iProov</a> documentation for detailed instructions on creating service providers in iProov.</p><p>After your account is set up with iProov, Log into <a href="https://portal.iproov.com/">iPortal</a> and create a service provider by navigating to the <strong>Service Providers </strong>section<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpoXTfsmP5Kt0jUQKWIe_g.png" /></figure><ol><li>Complete the service provider details form and complete the process.</li><li>After creating the service provider, you will be able to obtain the following details related to the service provider.</li></ol><ul><li>OAuth username</li><li>OAuth password</li><li>API key</li><li>API secret</li></ul><h4>Add iProov as a connection in Asgardeo</h4><ol><li>Navigate to Asgardeo console and go to <strong>Connections</strong>.</li><li>Click on Create Connection and select iProov template.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsN3I-Bk0gONVkk7gIOD-A.png" /></figure><p>3. Enter the following details and click <strong>Create</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVSPirc4dvu0NlIeP5Picw.png" /></figure><ul><li><strong>Name</strong> : A unique name to identify the connection.</li><li><strong>Base URL </strong>: The base URL of your iProov server deployment.</li><li><strong>OAuth Username </strong>: The OAuth Username from the service provider created in iProov.</li><li><strong>OAuth Password</strong> : The OAuth password from the service provider created in iProov.</li><li><strong>API Key</strong> : The API key obtained from the service provider created in iProov.</li><li><strong>API Secret</strong> : The API secret obtained from the service provider created in iProov.</li></ul><p>4. Now you are all set to integrate iProov as a MFA option for your application.</p><h4>Integrate iProov as a MFA option for your application</h4><p>Before moving forward you need to create an application in Asgardeo. Please refer to the official Asgardeo documentation on <a href="https://wso2.com/asgardeo/docs/guides/applications/">how to get started with an application.</a></p><p>To integrate iProov for your application please follow the steps below.</p><ol><li>Navigate to Applications in Asgardeo console.</li><li>Go to the Login flow tab of your created application.</li><li>Select your preferred editor to edit the login flow of your application.</li></ol><p><strong><em>Using the Classic Editor</em></strong></p><p>If you haven’t already configured an authentication flow, Click Start with default configuration to begin.</p><p>Add a second authentication step by clicking the + icon and add your iProov connection to this step.</p><p>If you have an already customized login flow, you can add a second authentication step by clicking the + icon and add your iProov connection to this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBPddgvvn6oUUdVsrUPnAA.png" /></figure><p><strong><em>Using the Visual Editor</em></strong></p><p>Switch to the Visual Editor tab.</p><p>Add a second authentication step by clicking the + icon and add your iProov connection to this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rulLazk2vGPKGKd_A0Tc-A.png" /></figure><p>4. Click on update to save the login flow.</p><h4>Try out the application</h4><ol><li>Navigate to your application URL.</li><li>Start the sign in flow by clicking the Login button.</li><li>Complete the preceding authentication steps that are defined for your application.</li><li>Grant camera access for iProov to authenticate the user.</li><li>Once you click on the `Start Scan` button iProov will initiate the facial scanning process. When you are successfully authenticated, you will be able to sign into the application.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2pLIQjNAgYLCOEavg6qMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cy6ksoYeymwIVg74zieH3A.png" /></figure><p>The following demo video depicts how the authentication flow works with iProov.</p><p><a href="https://drive.google.com/file/d/10cNdQDNFFNAXEhhX8vt1YsPKax4mO3ST/view?usp=drive_link">Login with iProov.webm</a></p><p>By integrating iProov authentication into your applications through Asgardeo, you boost security while offering users a hassle-free login. This all-inclusive method not only lowers risks but also builds trust and assurance among users engaging with your identity server. Strengthen security and improve user authentication with the potent pairing of iProov and Asgardeo.</p><p>Until next time…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f10d31f0067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Masking PII and other sensitive information in Asgardeo Logs]]></title>
            <link>https://medium.com/@lashinisharikaj/masking-pii-and-other-sensitive-information-in-asgardeo-logs-d6c3bbc3bd7e?source=rss-4b4191cdcd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c3bbc3bd7e</guid>
            <category><![CDATA[pii-data]]></category>
            <category><![CDATA[masking]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[Lashini Jayasekara]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 10:23:29 GMT</pubDate>
            <atom:updated>2022-12-13T10:23:29.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Q5CwWCXa1oJhAyaJ04YxQ.jpeg" /></figure><p>Hi everyone,</p><p>It’s been quite some time since the last blog. Today what I am going to explain in this article is how we can mask PII and other sensitive information in WSO2 IS and Asgardeo products. If you are a contributor to the WSO2 IS product or you are a developer of WSO2 Asgardeo this blog is for you.</p><h3>What is PII and why do we need to mask them from logs?</h3><p><strong><em>Personally Identifiable Information</em></strong> or PII is data that, when used alone or with other relevant data, can identify an individual. As you can understand logging these PII and other user-sensitive information in logs can cause a security vulnerability. Considering the risk of exposing these logs to external parties developers should always make sure to avoid printing PII or any other sensitive information in logs or mask that information properly to mitigate the security risk.</p><p>In Asgardeo there are several types of logs that we use for different purposes such as,</p><ul><li>Diagnostics logs</li><li>Audit logs</li><li>Transaction logs</li><li>Info logs</li><li>Error logs</li><li>Debug logs</li></ul><p>In the Asgardeo context, a few of the data that we consider to be masked from logs are as follows.</p><ul><li>username/email address</li><li>contact information</li><li>location identifiers</li><li>user claims</li></ul><h3>How does the masking happen in Asgardeo?</h3><p>The following is an audit log that is generated when adding a new user to the Asgardeo application and that is not subjected to masking. As you can see there are several sensitive pieces of information printed here such as email addresses, given names, and last names, and several users’ claims.</p><p><em>TID: [1] Tenant: [testasgardeo] [2022–10–13 10:43:11,677] [ea44f00f-ae07–4a15-b263-a11529052488] : iam-cloud-audit : WARN {AUDIT_LOG} — Initiator=</em><strong><em>testuser@gmail.com@abc</em></strong><em> Action=Add-User Target=</em><strong><em>DEFAULT/addeduser@gmail.com</em></strong><em> Data={“ServiceProviderName”:”Console”,”Claims”:{“http://wso2.org/claims/username&quot;:&quot;</em><strong><em>addeduser@gmail.com</em></strong><em>&quot;,&quot;http://wso2.org/claims/userid&quot;:&quot;</em><strong><em>d4461ede-0dea-4554-be32-424b2035adfe</em></strong><em>&quot;,&quot;http://wso2.org/claims/created&quot;:&quot;</em><strong><em>2022-10-13T05:13:11.634498Z</em></strong><em>&quot;,&quot;http://wso2.org/claims/modified&quot;:&quot;</em><strong><em>2022-10-13T05:13:11.634498Z</em></strong><em>&quot;,&quot;http://wso2.org/claims/emailaddress&quot;:&quot;</em><strong><em>addeduser@gmail.com</em></strong><em>&quot;,&quot;http://wso2.org/claims/location&quot;:&quot;h</em><strong><em>ttps://api.asg.io/t/testasgardeo/scim2/Users/d47c1ede-0dea-4554-be32-424b2035adfe</em></strong><em>&quot;,&quot;http://wso2.org/claims/lastname&quot;:&quot;</em><strong><em>Doe</em></strong><em>&quot;,&quot;http://wso2.org/claims/resourceType&quot;:&quot;</em><strong><em>User</em></strong><em>&quot;,&quot;http://wso2.org/claims/givenname&quot;:&quot;</em><strong><em>Jane</em></strong><em>&quot;}} Outcome=Success</em></p><p>After the log masking, the above log will be printed as follows.</p><p><em>TID: [1] Tenant: [testasgardeo] [2022–10–13 10:43:11,677] [ea44f00f-ae07–4a15-b263-a11529052488] : iam-cloud-audit : WARN {AUDIT_LOG} — Initiator=</em><strong><em>d562erda-7tyd-5678-b564–468n5693dtug</em></strong><em> Action=Add-User Target=</em><strong><em>D**********************m</em></strong><em> Data={“ServiceProviderName”:”Console”,”Claims”:{“http://wso2.org/claims/username&quot;:&quot;</em><strong><em>a****************m</em></strong><em>&quot;,&quot;http://wso2.org/claims/userid&quot;:&quot;</em><strong><em>d4461ede-0dea-4554-be32-424b2035adfe</em></strong><em>&quot;,&quot;http://wso2.org/claims/created&quot;:&quot;</em><strong><em>2**************Z</em></strong><em>&quot;,&quot;http://wso2.org/claims/modified&quot;:&quot;</em><strong><em>2****************Z</em></strong><em>&quot;,&quot;http://wso2.org/claims/emailaddress&quot;:&quot;</em><strong><em>a**************m</em></strong><em>&quot;,&quot;http://wso2.org/claims/location&quot;:&quot;</em><strong><em>h************************************e</em></strong><em>&quot;,&quot;http://wso2.org/claims/lastname&quot;:&quot;</em><strong><em>D*e&quot;</em></strong><em>,&quot;http://wso2.org/claims/resourceType&quot;:&quot;</em><strong><em>U**r</em></strong><em>&quot;,&quot;http://wso2.org/claims/givenname&quot;:&quot;</em><strong><em>J**e</em></strong><em>&quot;}} Outcome=Success</em></p><p>A few important things to notice after masking the log are,</p><ul><li>The initiator of the logs will be replaced with the userID instead of the username if the userID is resolvable. Otherwise, the masked username will be printed(all the characters of the username are replaced with <strong><em>*</em></strong> except for the first and last characters)</li><li>All the claim values will be masked in the same manner (all the characters except the first and last characters will be replaced with <strong>*</strong>)</li><li>If the userID is present in the claims, they will be printed as it is without masking the content.</li></ul><h3>Making explained from code level</h3><p>First and foremost, The masking logs feature can be enabled/disabled based on a configuration that we introduced to the <strong><em>deployment.toml</em></strong> config file. This feature is enabled by default in the product and when setting up the Asgardeo locally developers can disable this feature by adding the following config to the deployment.toml file in <strong><em>&lt;Asgardeo-product-pack&gt;/repository/conf</em></strong> directory.</p><pre>[masking_logs]<br>enabled = false</pre><p>Based on this configuration sensitive information in logs is masked.</p><ul><li><strong>For masking a string content</strong> you can use the getMaskedContent(String content) method in <a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L189">https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L189</a></li></ul><p><strong>Example for usage</strong></p><p><a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java#L750-L752">https://github.com/wso2/carbon-identity-framework/blob/master/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java#L750-L752</a></p><ul><li><strong>For masking values of a hash map</strong> you can use the getMaskedClaimsMap(Map&lt;String, String&gt; claims) method in <a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L209">https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L209</a><br>Note: when masking claim values there is an exception for userId claim where we exclude the value of userId been masked.</li></ul><p><strong>Example for usage</strong></p><p><a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/listeners/UserMgtFailureAuditLogger.java#L105-L110">https://github.com/wso2/carbon-identity-framework/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/listeners/UserMgtFailureAuditLogger.java#L105-L110</a></p><ul><li><strong>For masking an array of values</strong>, you can use the getMaskedArraysOfValues(String[] values) method in <a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L245">https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L245</a></li></ul><p><strong>Example for usage</strong></p><p><a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/listeners/UserManagementAuditLogger.java#L306-L311">https://github.com/wso2/carbon-identity-framework/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/listeners/UserManagementAuditLogger.java#L306-L311</a></p><ul><li><strong>For masking the value of a single claim</strong>, you can use the getMaskedClaimValue(String claimURI, String claimValue) method in <a href="https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L231">https://github.com/wso2/carbon-identity-framework/blob/master/components/central-logger/org.wso2.carbon.identity.central.log.mgt/src/main/java/org/wso2/carbon/identity/central/log/mgt/utils/LoggerUtils.java#L231</a></li></ul><p>Hope this article will help you in sanitizing your logs. Happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c3bbc3bd7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to GDPR…]]></title>
            <link>https://medium.com/@lashinisharikaj/gdpr-an-overview-859bc07f99f8?source=rss-4b4191cdcd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/859bc07f99f8</guid>
            <category><![CDATA[gdpr-data-protection]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[gdpr-compliance]]></category>
            <dc:creator><![CDATA[Lashini Jayasekara]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 17:37:06 GMT</pubDate>
            <atom:updated>2022-09-01T09:08:36.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6hAElWGsNl-2tPZg.jpg" /></figure><h3><strong>What is GDPR?</strong></h3><p>General Data Protection Regulation widely known as GDPR can be considered as the world’s strongest set of data protection rules about what organizations(companies) can do with individuals’ personal data. Here what is meant by personal data is anything that could identify a living person. This can be something obvious, such as</p><ul><li>person’s name</li><li>phone number</li><li>email address</li><li>a clear online username, etc</li></ul><p>or it can be something that may be less instantly apparent like IP addresses and cookie identifiers. Under GDPR there are also a few special categories of sensitive personal data that are given greater protection. This personal data includes information about,</p><ul><li>racial or ethnic origin</li><li>political opinions</li><li>religious beliefs</li><li>membership in trade unions</li><li>genetic and biometric data</li><li>health information</li><li>data around a person’s sex life or orientation.</li></ul><p>GDPR gives you more control over how your data is collected and used and forces organizations to justify everything that they do with your data.</p><p>GDPR came into force on 25th of May 2018. Even though GDPR is European Union legislation it has a huge effect on businesses outside the EU as well. Any organization that fails to compile with GDPR’s requirements will have to face severe penalties with maximum fines of up to 20 million euros or 4 percent of annual global turnover whichever is greater.</p><h3>Key Principles of GDPR</h3><p>The GDPR stands on 7 Key Principles which are explained in brief below. It is important to keep them in mind as core elements for anyone who processes personal data.</p><ul><li><strong>Lawfulness, fairness, and transparency</strong></li></ul><p>Lawfulness generally means that one should not use personal data in a manner that would result in a breach of a duty of confidence, copyright infringements, breach of a contractual agreement, breach of industry-specific legislation, or even a breach of the Human Rights Act. If proven unlawful acts of personal data use, the GDPR gives individuals the right to erase the data or restrict the processing of the data.</p><p>Processing of data must be fair as well, meaning that one should only utilize personal data in ways that stakeholders (mostly people who provide the data in this case) would reasonably expect. It should adversely affect them. A common instance where this occurs is when assessing the tax liability of an individual, based on their personal data.</p><p>Transparency is also very important, especially in instances where the organization is collecting data from the users themselves. The organization should clearly state why and how the personal data will be used.</p><ul><li><strong>Purpose limitation</strong></li></ul><p>This principle ensures that the organization is clear and open about the reasons for obtaining and using personal data. This makes the organization responsible for the actions they take within or beyond the purpose of the personal data. It also helps individuals understand how the organization uses their data, and make decisions about whether they are happy to share their details or not.</p><ul><li><strong>Data Minimisation</strong></li></ul><p>The data minimization principle states that the organization should only keep the minimum, adequate and relevant amount of personal data needed to achieve the purpose. This would also come in handy in case of a data breach, where only a limited amount of data will be compromised. However, it is to be noted that under the right to rectification and deletion in GDPR, users can complete or delete data that the organization obtains.</p><ul><li><strong>Accuracy</strong></li></ul><p>As per article 5(1)(d) of the UK GDPR, Personal data should be accurate and kept up to date. This encourages individuals or organizations to take necessary steps to ensure the accuracy of the personal data that is being collected and utilized as well as to determine when and where the data should be updated.</p><ul><li><strong>Storage Limitation</strong></li></ul><p>The Storage Limitation principle states that the organization must not keep the Personal data longer than it is needed. Therefore, it is important to assess and analyze how long the organization should keep the data. Periodical review of the personal data to determine which are to be kept, updated or deleted plays a key role here.</p><ul><li><strong>Integrity and Confidentiality</strong></li></ul><p>As an organization or an individual who uses Personal Data, they must make sure that adequate security measures and resources are available to protect the personal data held by them. Not only does this align closely with the other principles, but ensuring the confidentiality of the data the organization hold would bring confidence to the stakeholders as well.</p><ul><li><strong>Accountability</strong></li></ul><p>Accountability makes the organization responsible for adhering to the GDPR and encourages to demonstrate compliance to Stakeholders including the users the organization is collecting the personal data from.</p><h3><strong>What do organizations need to do to comply with GDPR?</strong></h3><p>As the full <a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/">GDPR regulations</a> are a bit long and complex, let me break down the key requirements that organizations need to fulfill to comply with GDPR.</p><ol><li><strong><em>Justify the need to collect personal data.</em></strong></li></ol><p>organizations can only collect personal data only if they have a valid reason to collect it. EU states there are<a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/lawful-basis-for-processing/"> six legal justifications</a> to collect personal data.</p><ul><li>Consent — the organization got the explicit consent from the user to collect the data</li><li>Contract — the organization needs the data to fulfill contractual objections with the user.</li><li>Legal obligation — the organization needs the data to comply with laws.</li><li>Vital interest — the processing is necessary to save/protect someone’s life.</li><li>Public task — if the organization is a public authority and the data is needed to carry out its responsibilities.</li><li>Legitimate interest</li></ul><p>The organization should state its justification at the time they collect data from individuals.</p><p><strong><em>2. Give users control over their data.</em></strong></p><p>Once the organization collects data, it is required to give users control over the data which was collected. EU states there are <a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/individual-rights/">eight specific rights</a> that users have over their data.</p><ul><li>The right to be informed</li><li>The right of access</li><li>The right to rectification</li><li>The right to erasure</li><li>The right to restrict processing</li><li>The right to data portability</li><li>The right to object</li><li>Rights in relation to automated decision making and profiling.</li></ul><p><strong><em>3. Keep collected data secure.</em></strong></p><p>According to GDPR, organizations are required to keep personal data secure and required regularly test their security measures. And also they need to proactively monitor for data breaches, report any breach within 72 hours to regulators and keep records of breaches.</p><p><strong><em>4. Implement data governance and documentation.</em></strong></p><p>Organizations are required to maintain proper governance, accountability, and record keeping. As examples,</p><ul><li>Organizations need to have written records of the purpose of collecting data, data retention policies, security policies and etc.</li><li>If an external party is involved with processing personal data, the organization is required to maintain written contracts with them outlining their privacy responsibilities.</li></ul><p>I think this sums up the core concepts of GDPR and how much of an important role it plays in the modern data-driven industry. Cheers and stay safe…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=859bc07f99f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is SAML Authentication and how does it work?]]></title>
            <link>https://medium.com/@lashinisharikaj/what-is-saml-authentication-and-how-does-it-work-d1a4d7c90be2?source=rss-4b4191cdcd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1a4d7c90be2</guid>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[aml]]></category>
            <category><![CDATA[identity-provider]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[service-provider]]></category>
            <dc:creator><![CDATA[Lashini Jayasekara]]></dc:creator>
            <pubDate>Fri, 25 Mar 2022 13:56:19 GMT</pubDate>
            <atom:updated>2022-03-25T13:56:19.285Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, welcome back. In today’s article, I’m going to talk about the economic crisis that we Sri Lankans have faced. just kidding!!! there is nothing to talk about it as we are on the edge of total bankruptcy. Instead, let’s talk about SAML which you might find interesting and helpful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*AAXOZxsqc08kiZlifUkkyw.png" /><figcaption>sigcorp.com</figcaption></figure><p>Before jumping into all technical stuff let’s get a basic idea of what is SAML?</p><p>Imagine you just started working on a new company (just like me) called <strong>Wowza. </strong>On the very first day at the company, they have provided you with a cool work email address and access to their dashboard. Once you sign into the dashboard you see a lot of icons for all the external services that the company uses like Jira, Salesforce, AWS, and whatnot. Out of curiosity, you clicked on the Salesforce icon and before you know it here you are signed on to Salesforce even without ever entering your credentials. DON’T PANIC!</p><p>As you may have guessed by now it is the magic of SAML. SAML stands for Security Assertion Markup Language. It is an XML-based open standard for transferring identity data between two parties: an identity provider (IdP) and a service provider (SP).</p><p>Just to make sure that we are on the same page here identity provider means a service that stores and verifies user identity. Service provider means a service that trusts the identity provider and authorizes the given user to access the requested resource.</p><p>In the scenario we discussed above, the identity provider would be the IdP that Wowza uses, <strong>Auth0</strong>. The service provider would be <strong>Salesforce</strong>. The Wowza employee signs into the Wowza dashboard with Auth0. They click on the Salesforce icon, and Salesforce recognizes that the user wants to log in via SAML. Salesforce sends the employee back to Auth0 with a SAML Request that asks Auth0 to authenticate the user. Since the employee has already authenticated with Auth0, Auth0 verifies the session and sends the user back to Salesforce with a SAML Response. Salesforce checks this response, and if it looks good, bang! the employee is granted access!</p><h3>Benefits of SAML Authentication</h3><p>One of the many benefits of SAML Authentication is <strong>improved user experience.</strong> With SAML Authentication<strong> </strong>users only need to sign in one time to access multiple service providers. This allows for a faster authentication process and less expectation of the user to remember multiple login credentials for every application, which is a huge advantage for users like me who tends to forget passwords very easily.</p><p><strong>Increased security</strong> is another key benefit of SAML Authentication. SAML provides a single point of authentication, which happens at a secure identity provider. Then, SAML transfers the identity information to the service providers. This form of authentication ensures that credentials are only sent to the IDP directly.</p><p>SAML doesn’t require user information to be maintained and synchronized between directories, so the<strong> loose coupling of directories</strong> is also a benefit of SAML.</p><p>With SAML, you don’t have to maintain account information across multiple services. The identity provider bears this burden. So the <strong>Reduced costs for service providers</strong> is also another benefit of using SAML.</p><p>As now we have a high-level idea of how SAML works and its benefits let’s dig into the more technical stuff.</p><h3>How do SAML works?</h3><p>SAML single sign-on authentication typically involves a service provider and an identity provider. The process flow usually involves the <em>trust establishment</em> and <em>authentication flow</em> stages.</p><p>Let’s consider the same Wowza and Salesforce example again. In that case, our identity provider is Auth0 and our service provider is Salesforce.</p><ol><li>The user tries to log in to Salesforce from a browser.</li><li>Salesforce responds by generating a SAML request.</li><li>The browser redirects the user to an SSO URL, Auth0.</li><li>Auth0 parses the SAML request and authenticates the user. This could be with username and password or even social login. If the user is already authenticated on Auth0, this step will be skipped. Once the user is authenticated, Auth0 generates a SAML response.</li><li>Auth0 returns the encoded SAML response to the browser.</li><li>The browser sends the SAML response to Salesforce for verification.</li><li>If the verification is successful, the user will be logged in to Salesforce and granted access to the resources that they are authorized to view/modify.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzTNKZ2xnol8wn6t7MZS-Q.png" /><figcaption>SAML flow diagram</figcaption></figure><p>Okay... Congratulations you made it to the end... So that’s my two cents about SAML authentication, its benefits, and how SAML works. hope y’all got a basic understanding of SAML. Till we meet with another article bye for now…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1a4d7c90be2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous loggers for low latency]]></title>
            <link>https://medium.com/@lashinisharikaj/asynchronous-loggers-for-low-latency-d91305e6170c?source=rss-4b4191cdcd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d91305e6170c</guid>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[low-latency]]></category>
            <category><![CDATA[log4j2]]></category>
            <category><![CDATA[benefits-and-drawbacks]]></category>
            <category><![CDATA[logging]]></category>
            <dc:creator><![CDATA[Lashini Jayasekara]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 12:17:08 GMT</pubDate>
            <atom:updated>2022-03-25T11:11:52.460Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to my very first medium article.</p><p>Recently I’ve been working on a task to enable asynchronous logging in an application to enhance its performance which led me to do some research on the topic. So here’s what I have found.</p><p>Before we move on to asynchronous logging let’s first have a look and see what is logging and why we need it.</p><p><strong>Logging is the act of recording data about the operation of a program.</strong> The place where we record this data is called a “<strong>log</strong>”.</p><p>For developers, loggers are needed to find problems in their applications during and after development. Logging tools are often deployed in places where they don’t have access or there are no debugging tools, but log messages can still help to localize problems. If regular logs are not enough, many applications can also provide debug logs with different switches which provide a lot more detailed information about what the application is doing.</p><p>System admins and operators, oversee many computers and make sure that they are running as smoothly as possible. They check the logs to see if everything is working as expected. Any previously unseen message is suspicious and needs attention, just as messages about overheating hard drives, dropped packages, or logins outside of normal working hours.</p><p>The security team, these guys are also working from logs and analyzing them from many aspects. Their reports range from authentication through resource access to malware activity which helps them to recognize security problems and respond to them.</p><h3>Importance of Asynchronous Logging</h3><p>When it comes to enterprise applications “Performance” is a very critical area that everybody is interested in and nobody wants the underlying logging framework to become a bottleneck. When we consider small applications with little volume this is rarely an issue but when it comes to enterprise applications there is a significant volume where the overhead for logging can be an issue. In such scenarios, the following two performance-related concepts come to the light.</p><ol><li>Latency: Time required to perform some action or to produce some result. Time of a transaction, or service invocation.</li><li>Throughput: The number of actions executed or results produced per unit of time.</li></ol><h3><strong>Benefits of Asynchronous Logging</strong></h3><p>For high logging performance, lower logging latency and higher throughput is expected. (duh!)</p><p>With asynchronous logging, it can enhance the performance of your application by executing the I/O operations in a separate thread. Log4j2 has made some noticeable improvements in this area.</p><p>Their aim is to return from the call to Logger.log to the application as soon as possible. You can either make all Loggers asynchronous or use a mixture of synchronous and asynchronous Loggers. Making all Loggers asynchronous will give the best performance, while mixing gives you more flexibility.</p><p>Even with the higher performance, there are a few drawbacks that you need to consider when adapting to asynchronous logging.</p><h3>Drawbacks</h3><ul><li>When it comes to error handling, if a problem happens during the logging process and an exception is thrown, it is less easy for an asynchronous logger or appender to signal this problem to the application.</li><li>If your application is running in an environment where CPU resources are scarce, as a machine with one CPU with a single-core, starting another thread is not likely to give better performance.</li></ul><h3>Conclusion</h3><p>The average applications will not need the performance benefits of Log4J 2’s asynchronous logging. In many cases, it would simply be overkill. When you’re developing enterprise-class applications, optimal performance does become critical. The option for asynchronous in Log4J 2 is a tool you can use to optimize the performance of your applications.</p><p>Thanks for reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d91305e6170c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>