<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Authorization on ARI Systems</title>
    <link>https://aripd.com/tags/authorization/</link>
    <description>Recent content in Authorization on ARI Systems</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>ARI Systems</copyright>
    <lastBuildDate>Sat, 16 May 2026 06:19:44 +0000</lastBuildDate>
    <atom:link href="https://aripd.com/tags/authorization/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>JSON Web Tokens - jwt</title>
      <link>https://aripd.com/blog/jwt/</link>
      <pubDate>Thu, 26 Nov 2020 00:00:00 +0000</pubDate>
      <guid>https://aripd.com/blog/jwt/</guid>
      <description>&lt;h2 id=&#34;references&#34;&gt;References &lt;a href=&#34;#references&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jwt.io&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;jwt.io&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/jwtk/jjwt&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;jjwt&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://metamug.com/article/security/jwt-java-tutorial-create-verify.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Generate JWT Token and Verify in Plain Java&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://medium.com/swlh/authentication-using-jwt-and-refresh-token-part-1-aca5522c14c8&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Authentication Using JWT and Refresh Token&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;jwt-authentication-flow&#34;&gt;JWT Authentication Flow &lt;a href=&#34;#jwt-authentication-flow&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;img src=&#34;./jwt-authentication-flow.svg&#34; alt=&#34;JWT Authentication Flow&#34;  title=&#34;jwt authentication flow&#34;  class=&#34;img-fluid&#34; loading=&#34;lazy&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;The flow of the authentication process is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User logs in using their credentials. On a successful login, the server issues an access token which is valid for a certain period of time (say 10 minutes) and a refresh token with a longer lifetime (say 24 hours for apps dealing with sensitive data. Simpler apps can have for days or even months). The client (frontend) stores refresh token in local storage (not database) and access token in cookies.&lt;/li&gt;&#xA;&lt;li&gt;On every request to a protected resource, the access token must be provided in the request as a header.&lt;/li&gt;&#xA;&lt;li&gt;When the access token expires after the stipulated time (10 minutes in our case), the client side app sends a request to generate a new access token, using the refresh token. This continues throughout the lifetime of the refresh token.&lt;/li&gt;&#xA;&lt;li&gt;Once the refresh token is expired, the user will be logged out and needs to log in again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;5 modules associated with the authentication process are:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
