Skip to content

Instantly share code, notes, and snippets.

View supaspoida's full-sized avatar

Lar Van Der Jagt supaspoida

View GitHub Profile
@jaredpalmer
jaredpalmer / oauth-device-flow.md
Last active September 1, 2021 09:35
OAuth 2.0 Device Flow

OAuth Device Flow

This is flow used by apps on Apple TV / Roku. However, it is also useful for CLIs.

Here is my rundown. Please correct me in comments if something is wrong or if there is a better way to do this.


Device pings the server to begin activation process

@lmarburger
lmarburger / thumber.rb
Created January 28, 2011 17:59
Create thumbnails from images stored in S3
require 'rack/thumb'
require 'rack/s3'
class Thumber
def initialize(app)
@app = stack_app app
end
def stack_app(app)