<?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 Jeff Shillitto on Medium]]></title>
        <description><![CDATA[Stories by Jeff Shillitto on Medium]]></description>
        <link>https://medium.com/@jeff.shillitto?source=rss-e7f5a8c4d3b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YaowQDhAxs23tgG_EwKpjQ.jpeg</url>
            <title>Stories by Jeff Shillitto on Medium</title>
            <link>https://medium.com/@jeff.shillitto?source=rss-e7f5a8c4d3b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:04:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeff.shillitto/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[Descending the AI Generated Images Rabbit Hole (Day 1)]]></title>
            <link>https://medium.com/@jeff.shillitto/descending-the-ai-generated-images-rabbit-hole-day-1-45d7c993b948?source=rss-e7f5a8c4d3b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/45d7c993b948</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-art]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-art]]></category>
            <dc:creator><![CDATA[Jeff Shillitto]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 02:43:26 GMT</pubDate>
            <atom:updated>2024-03-05T03:27:22.940Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FemokoDMwtjZ4A9B_EDpxw.jpeg" /></figure><p>On the weekend, after generating and comparing AI generated images on <a href="https://leonardo.ai/">Leonardo.ai</a> and <a href="https://ideogram.ai/">Ideogram</a> and seeing what OpenAI are doing in the <a href="https://openai.com/sora">video space</a>, I decided it was time to fully immerse myself in AI image generation to fully understand what’s happening under the hood and learn how these things work.</p><p>I spent 8–10 hours digging around the internet, watching YouTube videos and Reddit threads, installing different projects from GitHub and playing around with scripts, tools, models and prompts. I know I’ve only just scratched the surface.</p><p>Here’s some things I learned in note form, they should act as pointers for more investigation and might need some deciphering.</p><h4>Getting set up</h4><ul><li>Using Windows 10, GTX 1050Ti with 4GB VRAM.</li><li>Automatic1111 Stable Diffusion WebUI (<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">https://github.com/AUTOMATIC1111/stable-diffusion-webui</a>)</li><li>Use Python 3.10.6 on Windows, not the latest version (RTFM)</li><li>Download models to the \Web UI\models\Stable-diffusion directory</li><li>My spec was probably as low as you could go and was very slow to render images and had memory issues.</li></ul><h4>Models</h4><ul><li>Downloaded Stable Diffusion 1.5, 2.1 and XD</li><li>No one uses these models however and most people use fine-tuned custom models called checkpoints</li><li>There are thousands of free checkpoint models for different use cases on sites like <a href="https://civitai.com/">https://civitai.com</a> and <a href="https://huggingface.co/">https://huggingface.co/</a></li><li>Also tried RealisticVision V6 (<a href="https://civitai.com/models/4201/realistic-vision-v60-b1">https://civitai.com/models/4201/realistic-vision-v60-b1</a>) and Dreamshaper (<a href="https://civitai.com/models/4384/dreamshaper">https://civitai.com/models/4384/dreamshaper</a>)</li><li>They are each several GB in size and will eat up your hard drive space</li></ul><h4>Generating images</h4><ul><li>You must write a prompt (and optional negative prompt) of course but it’s not as simple as it sounds</li><li>There are guides on how to do this and opinionated formats to use, like this: <a href="https://stable-diffusion-art.com/how-to-come-up-with-good-prompts-for-ai-image-generation">https://stable-diffusion-art.com/how-to-come-up-with-good-prompts-for-ai-image-generation</a> and this <a href="https://civitai.com/articles/3770/how-to-prompting-with-style-and-quality">https://civitai.com/articles/3770/how-to-prompting-with-style-and-quality</a></li><li>Adjusting the Steps and CFG scale have a huge influence on the image generated. But it’s not just a case of dialing up the numbers — a lot of the time, lower numbers generated more desirable images:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*2jTQtaonahLa2T8qabAeSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*8hPbOz1f-GyyOPsi6TLIRw.png" /><figcaption>A Lizard man headshot. Left: 16 steps, Right: 30 steps. Its subjective but I’d say the image on the left is better, the right image looks more like a mask.</figcaption></figure><ul><li>CivitAI (and others have galleries with exact prompts, models, settings etc.. but you copy them and they still don’t look as good. What is the issue here?</li><li>A lot of trial and error will be involved to get things to look the way you want and you need to know what good looks like.</li><li>When trying to create a more realistic face I asked for pores and wrinkles, but pores added strange cracks to the skin, wrinkles by itself worked much better. Try, try, try again…</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*jY92I4e8FFZ7JQUueAXHZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*OYhJGzwkhyfT-cC0vwHBZA.png" /><figcaption>A Dune inspired desert woman. Left: pores and wrinkles in prompt. Right: just wrinkles.</figcaption></figure><ul><li>Notice my headshots always look at the camera. I’d like to get them in different poses.</li><li>80–90% of my images were rubbish</li></ul><h4>Other great resources</h4><p>These websites and resources kept coming up in my Google searches:</p><ul><li><a href="https://www.youtube.com/@OlivioSarikas">https://www.youtube.com/@OlivioSarikas</a></li><li><a href="https://prompthero.com/">https://prompthero.com</a></li><li><a href="https://stable-diffusion-art.com/">https://stable-diffusion-art.com</a></li><li><a href="https://www.reddit.com/r/StableDiffusion/">https://www.reddit.com/r/StableDiffusion/</a></li></ul><h4>Final thoughts</h4><ol><li>While people are saying AI is going to take our jobs (normally by people who don’t do those jobs), at the moment anyway, this is a job that still requires skill, experience, creativity and effort. While job roles might shuffle around, like all technological leaps, we always end up creating more jobs than we destroy.</li><li>I think I’d need 10 more weekends to get competent with this.</li><li>From an automation point of view, which is my background with <a href="https://shotstack.io/">Shotstack</a>, there is a lot of trial and error required to get images right. Is there a perfect set of settings you can use to create great images, unattended, every time?</li></ol><h4>To do</h4><ul><li>Image to image</li><li>Text to video</li><li>Inpainting/outpainting</li><li>Embeddings, Loras, Dreambooth and training</li><li>Creating a custom model/checkpoint</li><li>Doing everything via command line/scripts/hosted</li></ul><p><strong>Note: </strong>The rabbit image at the top of this article was generated by Leonardo.ai. This was my attempt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vJeQPlp9k-0Ss9wsxR19fA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45d7c993b948" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fake it as a Software Engineer]]></title>
            <link>https://medium.com/@jeff.shillitto/how-to-fake-it-as-a-software-engineer-9a1c8be7a236?source=rss-e7f5a8c4d3b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a1c8be7a236</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jeff Shillitto]]></dc:creator>
            <pubDate>Mon, 24 Jun 2019 23:56:51 GMT</pubDate>
            <atom:updated>2019-07-02T00:56:50.645Z</atom:updated>
            <content:encoded><![CDATA[<h4>I have no idea what I’m doing. A definitive guide to faking it until you make it.</h4><p>I have a confession to make; I have no idea what I am doing. Up until recently I was employed as a software engineer even though I’m not even qualified to use a computer let alone have a degree in computer science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYeDPSbCPBSy3OdjeL3lxQ.jpeg" /></figure><p>Over the last 5 years I faked my way up the ladder from working at a small creative agency to a large multinational corporation and finally landed a role at one of Australia’s leading tech companies, <a href="https://www.theiconic.com.au/">The Iconic</a>, working in a large team of the country’s smartest software engineers, data scientists and product owners.</p><p>Like many developers, makers, hackers and hobbyists, I taught myself to code.</p><p>Building a website, integrating a CMS or e-commerce system, administering a database and managing a server, after a while become second nature.</p><p>At some point in your career, like me, you might find these simpler projects or working alone are no longer enough and you want to step up to being a fully fledged software engineer working with a larger team of like-minded engineers at a large corporation, tech company or fast growing start-up.</p><p>With Apple, Google and other large tech companies now saying they will accept applicants without a computer science degree it’s never been easier to fake it, so with that in mind, here are my top three tips on how to land that dream job.</p><h3>Apply for jobs you aren’t qualified for</h3><p>This is my top tip and the one that had the most impact on my path to faking it. Apply for jobs even if there is little chance of success. I’d recommend aiming for jobs asking for 1–2 years of experience more than you already have.</p><p>Unless you are exceptionally talented there is a high probability you will be rejected. Don’t let this discourage you, try again elsewhere but be ready for more rejections.</p><p>Why? Because the feedback you get will be invaluable. Employers will tell you exactly what skills, technologies and techniques they are looking for. After a few applications and interviews you will start to notice a trend and you can get busy learning the most sought after skills you don’t have experience with.</p><p>This is the equivalent of market research, treat your future employer like a customer and work out what they want, then go away, adapt and deliver it.</p><p>Some questions that directed my approach to learning several years ago:</p><ul><li>Explain your understanding of Polymorphism</li><li>What is your approach to unit testing your code?</li><li>Name three design patterns and when you would use them</li><li>How would you use caching to optimise performance?</li></ul><h3>Create your own side project</h3><p>This is the best way to learn in my opinion and can also be the most rewarding. You can learn from books and online tutorials, but they tend to guide you down a specific path and completing a tutorial doesn’t offer the same thrill or sense of achievement that creating your own side project does.</p><p>By dedicating yourself to a side project, especially if you intend to release the source code or launch a software product to the public you will a) find yourself more committed to learning and b) you will be forced to develop your problem-solving skills — there is no guide telling you what to do, you’ll need to work things out yourself.</p><p>Side projects allow you to experiment, practice and demonstrate knowledge of the latest technologies, languages, frameworks, techniques and best practices that you might not have the opportunity to learn elsewhere, such as your day job.</p><p>A side project will also impress potential employers that you live and breathe software, that you love coding and you are on top of emerging trends.</p><h3>Copy others work</h3><p>They say if you can’t find the answer on Stack Overflow then it can’t be done.</p><p>If you want to learn fast and build things, then copy solutions from Stack Overflow, Google the answer or find something similar on GitHub.</p><p>The trick to faking it however is to critically evaluate the solutions you find, cross reference it against other suggestions and then look for how it can be improved and refined so that it looks like your own work.</p><p>But don’t stop there, if you already work with or know other software engineers copy what they are doing and learn from their hard work and mistakes. A good software engineer will be more than happy to coach and mentor you and pass on their knowledge.</p><h3>You can do it</h3><p>It should take no more than five years to be able to fake it as an accomplished software engineer and hopefully you can land that dream role with a much sought-after tech company. All it really takes is patience, hard work and dedication.</p><h3>One last thing</h3><p>Should you successfully fake it, your job then is to pass down your knowledge and wisdom you have acquired.</p><p>Answer questions on Stack Overflow, write a blog, or contribute to an open source project and encourage those on the same path as you to embrace their curiosity, develop their problem-solving skills and help them to become great software engineers.</p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYxBP_WV7LI6zc-zdUkNqQ.png" /></a></figure><p>📝 Read this story later in <a href="https://blog.usejournal.com/r/?url=https%3A%2F%2Fusejournal.com%2F%3Futm_source%3Dmedium.com%26utm_medium%3Dnoteworthy_blog%26utm_campaign%3Dtech%26utm_content%3Dguest_post_read_later_text">Journal</a>.</p><p>👩‍💻 Wake up every Sunday morning to the week’s most noteworthy stories in Tech waiting in your inbox. <a href="https://blog.usejournal.com/r/?url=https%3A%2F%2Fusejournal.com%2Fnewsletter%2Fnoteworthy-in-tech%2F%3Futm_source%3Dmedium.com%26utm_medium%3Dnoteworthy_blog%26utm_campaign%3Dtech%26utm_content%3Dguest_post_text">Read the Noteworthy in Tech newsletter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a1c8be7a236" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authentication — An in depth look at AWS Cognito]]></title>
            <link>https://medium.com/the-iconic-engineering/authentication-an-in-depth-look-at-aws-cognito-658336515169?source=rss-e7f5a8c4d3b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/658336515169</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-cognito]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Jeff Shillitto]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 23:16:52 GMT</pubDate>
            <atom:updated>2017-11-20T23:16:52.551Z</atom:updated>
            <content:encoded><![CDATA[<p>THE ICONIC Engineering team was recently tasked with evaluating a new identity platform for securing and managing the companies rapidly growing user base. With an existing investment in the AWS ecosystem Cognito seemed like an obvious choice, expecting it would offer features and functionality on par with alternatives like Auth0 or Gigya.</p><p>During our investigation, we discovered that Cognito offers numerous possibilities for integrating with AWS. Our investigation also highlighted some confusion around the use cases of Cognito and helped us make sense of the documentation, terminology, configuration, libraries and methods.</p><p>The following is an attempt to simplify the understanding of what Cognito does and how to take advantage of it in your projects.</p><h3>IAM and AWS Authentication</h3><p>Before diving in to Cognito, it is worth taking a quick look at how the AWS<a href="https://aws.amazon.com/documentation/iam/"> Identity and Authentication Management</a> (IAM) system works. IAM is the user management system that allows you to manage users and grant permissions to various AWS services. Once a user is created they are provided with an access key and secret which look something like:</p><pre><strong>Access key ID:</strong>     ASIAIOD4IJDY2123ABCD<br><strong>Secret access key:</strong> DUu6KNPxJtMrDfXK71hLnVBzYQA5h74abcdEfgHi</pre><p>Using these credentials, a user or application can interact with the AWS ecosystem and API’s using the CLI or SDK in your language of choice. It is common practice to create users and credentials for trusted developers, dev-ops and for use by your application, but what about all your web site users?</p><p>Luckily IAM provides fine grained control over what a user can and cannot access using roles and policy documents. A policy that allows a user to upload files to S3 might look something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b96681846a7a22dc730f52cfd0e18ff/href">https://medium.com/media/6b96681846a7a22dc730f52cfd0e18ff/href</a></iframe><h3>Cognito Federated Identities and Identity Pools</h3><p>With a basic understanding of IAM users, roles and policies it’s time to look at Cognito Federated Identity. The core concept of Federated Identity is that it allows an authorised user to obtain temporary, limited-privilege AWS credentials to securely access AWS services such as S3, DynamoDB, Lambda or API Gateway. Users are authenticated via third party authentication providers, for example via Facebook.</p><p>The goal is to allow a user to login (i.e. via Facebook), and then grant them access to one or more AWS services. Cognito, in effect, issues a user with an IAM access key and secret and assigns them a role/policy with permissions to interact with specified AWS resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*Z46P0FFJC14JjcVlU0haUQ.png" /><figcaption>Using Facebook Login with a Cognito Identity Pool to access AWS services</figcaption></figure><p>Within the AWS console, Federated Identities are setup and referred to as Identity Pools. An Identity Pool has an ID that looks like:</p><pre><strong>ap-southeast-2:48df7ae0-e3bc-2963–8520-a28dabcd1234</strong></pre><p>An Identity Pool adds users authenticated via external providers such as Facebook or Twitter and creates a unique and persistent Identity ID which follows the same <strong><em>region:uuid</em></strong> format:</p><pre><strong>ap-southeast-2:8a23c51b-304e-447d-843d-1451abcd1234</strong></pre><p>The Identity ID can be useful as an S3 object prefix or as a key in DynamoDB so you can restrict read and write operations to the logged in user. IAM roles have a feature called <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html">policy variables</a> which would allow you to add a restriction linked to this Identity ID. The following rule only allows a user to upload files to their own folder and no one else’s:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd6b0b8547d08eda1e05b12087ac34d7/href">https://medium.com/media/dd6b0b8547d08eda1e05b12087ac34d7/href</a></iframe><p>When you create an Identity Pool it automatically creates two IAM roles, one for unauthenticated users and one for authenticated users. For each role you can edit the policy and grant access to various AWS services. You might allow all users, including unauthenticated users, to read a DynamoDB table, but only allow authenticated users to write to the table.</p><p>Examples and more details are available in Amazon’s blog post: <a href="https://aws.amazon.com/blogs/mobile/understanding-amazon-cognito-authentication-part-3-roles-and-policies/">Understanding Amazon Cognito Authentication Part 3: Roles and Policies</a>.</p><p>Accessible via all the SDK’s including PHP you can access data about the pool, but not the authentication provider (i.e. you can’t look up the Facebook users name). Those credentials would look something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c52d223170f9bf363e3c6438a3dccc6/href">https://medium.com/media/8c52d223170f9bf363e3c6438a3dccc6/href</a></iframe><p>In the response, you will see some now familiar looking values including the Identity ID, Access key ID and the Secret access key:</p><pre><strong>Identity ID:   </strong>ap-southeast-2:8a23c51b-304e-447d-843d-1451abcd1234 <br><strong>Access Key Id:</strong> ASIAI22KD7MGBHGZYCAQ <br><strong>Secret Key:    </strong>RIk9LvEWS6QP4pO1DxUNnxJ7F5cUgH0Jl6wfxhjT</pre><h3>Cognito User Pools</h3><p>User Pools were added to the Cognito service after the introduction of the Federated Identity service. It allows you to manage sign up, sign in and storage of user details. A User Pool is essentially another authentication provider just like Facebook or Twitter.</p><p>The AWS console provides the UI to create a pool, manage users, set up Lambdas that get triggered at various stages of the signup/sign in process and set password policies. There is also a documented process to <a href="http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html">migrate existing users in to a pool</a> (though passwords need to be reset).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*eMapUYl0W6uPFdzAhgb4Pg.png" /><figcaption>Using Cognito User Pools with an Identity Pool to login to AWS services</figcaption></figure><p>While the Federated Identity (Identity Pools) service provides access via server side SDK’s (PHP, C#, Ruby, etc.) the User Pool service is offered as a mobile service and as a result there are only SDK’s for JavaScript, iOS and Android.</p><p>The JavaScript SDK is confusingly called <a href="https://github.com/aws/amazon-cognito-identity-js">amazon-cognito-identity-js</a> even though it is used to interact with User Pools only (not Identity Pools). The SDK also depends on <em>CognitoIdentityServiceProvider </em>from the main AWS SDK, also only concerned with User Pools. Finally, if you want to use Federated Identity you need the <em>CognitoIdentity </em>service.</p><p>The User Pool has the following important identifiers that look similar to:</p><pre><strong>Pool id:       </strong>ap-southeast-2_EPyUfpQq7 <br><strong>App client id:</strong> 54o2tsorf2j0adkefbabcd1234</pre><p>The minimum amount of code you could use to sign up a user to the User Pool would be:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53cfdf21ca9701c95b7546c3f1cbe6b9/href">https://medium.com/media/53cfdf21ca9701c95b7546c3f1cbe6b9/href</a></iframe><p>And the minimum code needed to sign in to the User Pool would be:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6763dafdadb859dcc5b0320f2ca1127f/href">https://medium.com/media/6763dafdadb859dcc5b0320f2ca1127f/href</a></iframe><p>The response contains an access token, id token and refresh token, each encoded as a <a href="https://jwt.io/">JSON Web Token</a> (JWT).</p><h3>Cognito User Pools for Federated Identity</h3><p>Having signed in to the User Pool and acquired an access token, there are two main ways it can be used. The first is to authenticate against a Cognito Federated Identity Pool and gain temporary access to AWS services. In the same way that you can use Facebook as an authentication provider, the User Pool can also be used exactly like a third-party provider:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c78d1c16641aca74036f9d8629d3db9/href">https://medium.com/media/9c78d1c16641aca74036f9d8629d3db9/href</a></iframe><h3>Cognito User Pools as a Standalone Authentication Service</h3><p>Second, it is also feasible to use a User Pool to grant access to your own API by passing and decoding the JWT token generated when a user signs in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*NrlnkqeNYdj9vsij4crpJg.png" /></figure><p>To decode and verify the token you could do the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e25d8891c420c1816df67fd4cda83688/href">https://medium.com/media/e25d8891c420c1816df67fd4cda83688/href</a></iframe><p>Because the JWT token contains information about the user such as the email or username you could restrict access to resources owned by the user such as their order history, address or payment information.</p><h3>Putting it All Together</h3><p>At THE ICONIC, we were investigating a way to delegate our authentication to a third party and provide access to our existing API. We also wanted the option to easily add social login providers like Facebook and Twitter, again granting access to our existing API.</p><p>This is where the limitations of Cognito as a generic authentication platform come to light. Everything has been designed around signing in to AWS services via external providers like Facebook and an Identity Pool. Signing in to your existing APIs is possible using the User Pools JWT token. However, signing in to Facebook and authenticating against a Federated Identity Pool does not provide a decodable token that can be used to authenticate against your own API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*Glo3I0-7t445xlzXLineiA.png" /></figure><p>Essentially a Federated Identity Pool knows nothing about the user logged in via the authentication provider whether they are a Facebook user or a User Pool user. There is no way to know their name, username, email or other identifying information that you can use with your existing API’s and databases. All an Identity Pool is concerned about is that the user is authenticated and that the user has an ID that looks something like this:</p><pre><strong>ap-southeast-2:8a23c51b-304e-447d-843d-1451abcd1234</strong></pre><p>This makes integrating User Pools and social networks problematic as a way to authenticate against an existing API. If this is your objective you might be be better off looking to Auth0 or Gigya.</p><p>Where Cognito shines is if you want to directly access AWS services, especially if you are starting a new project and intend to use AWS API gateway or want to connect directly to AWS services — for example upload to S3, write to Dynamo DB or invoke a Lambda directly from your app. If you aren’t concerned about vendor lock-in and are looking for a cost effective, secure and highly scalable Authentication service then Cognito is the way to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=658336515169" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-iconic-engineering/authentication-an-in-depth-look-at-aws-cognito-658336515169">Authentication — An in depth look at AWS Cognito</a> was originally published in <a href="https://medium.com/the-iconic-engineering">THE ICONIC Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>