<?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 Isurika Perera on Medium]]></title>
        <description><![CDATA[Stories by Isurika Perera on Medium]]></description>
        <link>https://medium.com/@Isurika?source=rss-b62739fb7694------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*psgz1-duFlLQuQJ1rAmr7g.jpeg</url>
            <title>Stories by Isurika Perera on Medium</title>
            <link>https://medium.com/@Isurika?source=rss-b62739fb7694------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:14:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Isurika/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[Authentication vs. Authorization: What’s the Difference?]]></title>
            <link>https://medium.com/@Isurika/authentication-vs-authorization-whats-the-difference-478506486bce?source=rss-b62739fb7694------2</link>
            <guid isPermaLink="false">https://medium.com/p/478506486bce</guid>
            <dc:creator><![CDATA[Isurika Perera]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 14:32:09 GMT</pubDate>
            <atom:updated>2022-11-07T14:32:09.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*-fBRP2tY5JmCRR2TeZmk7g.gif" /></figure><p>Today I’m going to write about two topics that most people get mixed up about. When it comes to security and gaining access to a system, both terms are used frequently and interchangeably. Authentication and authorization are different concepts, but both are essential to protect your data in complimentary ways. Implementing authentication with the appropriate authorization techniques helps protect enterprises from a wide range of security threats.</p><h3><strong>Authentication </strong>(AuthN)</h3><p>Authentication is a process that verifies that someone or something is who they say they are. To authenticate, a user proves his identity to gain access to a resource such as application, system, device and so on. The user needs to provide some pre-registered credentials during authentication in order to prove their identity.</p><p><strong>Common Authentication Methods</strong></p><ul><li><strong>Single-Factor Authentication </strong>— Although they are considered “old school” and less secure, they are nonetheless widely employed in most of the authentication techniques.</li><li><strong>2FA/MFA (Two-Factor/ Multi-Factor Authentication) —</strong> To improve security, MFA integrates several modes of authentication. Passwords are often backed with OTP, token-based authentication, biometric authentication …etc, or a combination of these.</li><li><strong>Passwordless Authentication — </strong>Users can log in without having to remember a password. Users instead input their email or phone number to receive a one-time code or magic link that they may then use to log in. There are many emerging passwordless authentication methods still continuing to innovate and change the identity industry’s landscape.</li><li><strong>Single Sign-On (SSO) — </strong>Allows users to login to various applications using a single identity provider. A service with a large user base, like Facebook or Google, or an organizational identity provider, like Active Directory, can serve as the identity provider. SSO solutions enhance user experience by reducing interruptions caused when requesting password for access. The user is authenticated only once, and the system grants them access to all resources that they are authorized to use.</li><li><strong>Certificate-Based Authentication — </strong>Before accessing a resource, this type of authentication employs a digital certificate to identify the user. A digital certificate is a type of electronic document similar to a driver’s license or a passport. The certificate includes a user’s digital identity, public key, as well as a certification authority’s digital signature.</li></ul><p>Systems can authenticate users using a variety of methods. Typically, authentication procedures use one of the following to confirm your identity: something you know; something you have; or something you are.</p><ul><li><strong>Knowledge factors</strong> <strong>— Something you know : </strong>Passwords, access codes, security questions and personal identification numbers(PIN) are examples for this. These are the least secure factors because attackers can easily exploit them.</li><li><strong>Possession factors — Something you have : </strong>Physical identification documents, keys, access tokens, digital certificates, mobile phones, and anything else a user or entity owns that confirms their identity are examples of these factors.</li><li><strong>Inherence Factors</strong> <strong>— Something you are : </strong>Include fingerprint scans, Face recognition, retina scans, or any other biometric. Although many people believe that inherence factors are the most secure, sophisticated attackers are able to fake biometric readings and compromise them.</li></ul><h3><strong>Authorization (AuthZ)</strong></h3><p>After a person has been identified and authenticated, we determine what resources that person can access and what actions they can take on those resources during the authorization process. For example, when a user accesses their bank account online, he can see his account balance and transaction history because he is authenticated, but he is not authorized to view anyone else’s. A bank manager, on the other hand, may be granted access to view any customer’s financial information.</p><p><strong>Common Types of Authorization</strong></p><ul><li>Role-Based Access Control (RBAC)</li><li>Attribute-Based Access Control (ABAC)</li><li>Relationship-Based Access Control (ReBAC)</li></ul><p><strong>Role-Based Access Control (RBAC)</strong></p><p>It is an authorization method that restricts access to specific resources based on the role assigned to a user or group of users. It adheres to the concept of least privilege access, which states that a system should only give each user the limited resources they need to do their jobs. Role-based access control has grown in popularity in recent years as it provides more flexibility for allocating various levels of authority to different roles and managing resources and privileges.</p><figure><img alt="Example for Role-Based Access Control (RBAC)" src="https://cdn-images-1.medium.com/max/545/1*Tem52wvZaOs7H4vvephksg.png" /><figcaption>Example for Role-Based Access Control</figcaption></figure><p><strong>Attribute-Based Access Control (ABAC)</strong></p><p>It is a more granular type of access control that allows the owner of an item to assign security attributes to it and then use those attributes to specify who should have access to it. An attribute can be user data (name, position, ID), environment data (time of login, location), and so on. The key advantage of attribute-based access control is that it does not require complex rule sets. It also has the advantage of being applicable at various levels within an organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*PSUU-Tg_50a3L7nMZkf_Cw.png" /><figcaption>Attribute-Based Access Control (ABAC)</figcaption></figure><p><strong>Relationship-Based Access Control (ReBAC)</strong></p><p>In terms of authorization, Relationship Based Access Control considers the following question: “Does this user have a sufficient relationship to this object or action so that he can access it?” Relationships include data ownership, parent-child relationships, groups, and hierarchies.</p><p>Social networks are probably the best-known example of ReBAC. For example, In Facebook you can provide your “friends of friends” access to your posts. Your posts are visible to your friends. Your posts are visible to your friends of friends. However, the friends of those friends cannot, since their relationship path is wrong, involving too many steps.</p><h3><strong>Authentication vs Authorization?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*uNAK2oCgpdml84Ogv46EkA.png" /></figure><p>Authentication and authorization defend against unauthorized access to a system, and they are usually used in conjunction with each other. It is important to know their difference and how they relate to security. I hope that this article helped you get a better grasp of these two concepts.😄</p><p><strong>References 📚</strong></p><p><a href="https://auth0.com/intro-to-iam/what-is-authorization/">What is Authorization?</a></p><p><a href="https://www.okta.com/identity-101/role-based-access-control-vs-attribute-based-access-control/#:~:text=The%20main%20difference%20between%20RBAC,%2C%20action%20types%2C%20and%20more.">RBAC vs. ABAC: Definitions &amp; When to Use</a></p><p><a href="https://www.osohq.com/academy/relationship-based-access-control-rebac#:~:text=Relationship%2Dbased%20authorization%2C%20or%20ReBAC,relationships%2C%20groups%2C%20and%20hierarchies.">Relationship-Based Access Control (ReBAC)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=478506486bce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>