<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Coleman Beiler</title>
    <description>The latest articles on DEV Community by Coleman Beiler (@colemayne).</description>
    <link>https://dev.to/colemayne</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F232308%2F8267e00b-f3f4-42e9-8e7a-dbc177fde8be.jpeg</url>
      <title>DEV Community: Coleman Beiler</title>
      <link>https://dev.to/colemayne</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/colemayne"/>
    <language>en</language>
    <item>
      <title>Introducing Aberrant Authentication</title>
      <dc:creator>Coleman Beiler</dc:creator>
      <pubDate>Wed, 16 Oct 2019 01:10:22 +0000</pubDate>
      <link>https://dev.to/colemayne/introducing-aberrant-authentication-3398</link>
      <guid>https://dev.to/colemayne/introducing-aberrant-authentication-3398</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CpCzoteC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j1t2ycj6zg5ro93dprp4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CpCzoteC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j1t2ycj6zg5ro93dprp4.png" alt="Aberrant Authentication Logo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Something aberrant has wandered away from the usual path or form. The word is generally used in a negative way; aberrant behavior, for example, may be a symptom of other problems. But the discovery of an aberrant variety of a species can be exciting news to a biologist, and identifying an aberrant gene has led the way to new treatments for diseases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Colemayne/Aberrant-Authentication"&gt;Aberrant Authentication GitHub&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  What is Aberrant Authentication
&lt;/h4&gt;

&lt;p&gt;Aberrant aims to make session tracking and user authentication a breeze. Within minutes, you can have a fully secure solution to a tough problem.&lt;br&gt;
Set-up requires no sign-up, it doesn't track your users usage, and it doesn't require internet access to work.&lt;/p&gt;

&lt;p&gt;I believe that access control, session tracking, and authentication should be the first thing done when creating an application. Security doesn't have to be an after-thought anymore; even if you aren't developing online.&lt;/p&gt;
&lt;h4&gt;
  
  
  Technology and Methodology
&lt;/h4&gt;

&lt;p&gt;The application is built on top of the Spring framework, and requires a running database compatible with liquibase; that's it! I am looking to talk to people who are interested in security / authentication / session tracking and learn about what more I can do to make my solution as secure as possible. The current iteration involves a simple 'username' and 'password' combination which returns a session object if successful. The session object consists of three key things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SessionToken: String: Unique key to identify the session&lt;/li&gt;
&lt;li&gt;RefreshToken: String: Random key, Random size. A new key is generated and sent with every request.&lt;/li&gt;
&lt;li&gt;RequestNumber: int: Which number request the session is on. The client side application is responsible for incrementing this number themselves. A successful request will always increment the number, otherwise it's safe to assume it'll remain the same.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Upon creation of the account, 2 different randomly generated strings are stored, then combined with the password to create a hash.&lt;/p&gt;
&lt;h4&gt;
  
  
  Feature Wishlist
&lt;/h4&gt;

&lt;p&gt;In the interest of getting a little help during Hacktoberfest, I'm adding the features I wish to see in the application.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Request header ("host") stored in a new table and determine if the login is coming from a new ip address.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Locking account if there are more than 3 attempts. Email / security questions required to unlock the account.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Security questions feature.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;More verbose group / membership.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  I've got a small Vue.js project that I've been using to interact with the project. I can provide that upon request.
&lt;/h3&gt;
&lt;h4&gt;
  
  
  Example Usage
&lt;/h4&gt;

&lt;p&gt;In this example, we will be using javascript to request information on a specific user. It's important to note that this example assumes you've already authenticated.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="nx"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/api/auth/v1/users/select/user&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;GET&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sessionToken&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sessionToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;refreshToken&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;refreshToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;requestNumber&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;requestNumber&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nx"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;refreshToken&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;refreshtoken&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nx"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;requestNumber&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Found the user: &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I would love some feedback on what is good/bad about my ideas / application.&lt;/p&gt;

&lt;p&gt;Let me know!&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>security</category>
      <category>contributorswanted</category>
    </item>
  </channel>
</rss>
