Skip to content

Instantly share code, notes, and snippets.

View ranman's full-sized avatar
🏠
Working from home

Randall Hunt ranman

🏠
Working from home
View GitHub Profile
@faermanj
faermanj / README.md
Last active March 19, 2023 13:39
API Authentication with Amazon Cognito

In the previous episodes we implemented the fundamental components of a tyical web application: "static" content and "dynamic" APIs. For each component, we´ve been using the most out of AWS services, such as S3, CloudFront, Lambda and API gateway. But so far we have only been working with public resources. Let us now learn more about user authentication and authorization in two very important services: AWS Identity and Access Management and Amazon Cognito. Even more importantly, let us integrate that within our React application ;)

  • Serverless Architecture Review
  • Introduction to Amazon Cognito
  • Cognito User Pools
  • Cognito Federated Identities
  • Cognito Identity SDK
  • AWS SDKs
  • Integrating with Javascript and React
  • Implementing Authentication Flows
@michaelbartnett
michaelbartnett / breakvoluptuous.py
Last active December 17, 2015 07:09
Breaking Voluptuous
from voluptuous import Schema, Required, Range
schema = Schema({
Required('a'): 1,
Required('b'): {
Range(min=1,max=20): [
0,
{
Required('foo'): 42
},
@ranman
ranman / apod.py
Created May 19, 2012 05:58
quick script to set twitter bg to astronomy pic of the day
# Copyright 2012 Joseph R. Hunt
# All rights reserved.
# This is just a quick hack and is not reliable
# width 850,315
import re
import urllib
import Image
import cStringIO