This document is intended to be a simplified version of the OAuth 2.0 specification. In particular it has been written with implementors in mind, and as such attempts to trim the spec down to just what you need to implement an OAuth provider or client. It is necessarily not complete, but attempts to introduce spec requirements in the same order in which the protocol proceeds in practise, with everything you need to know about each protocol endpoint brought together in one place rather than scattered across a large document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. put <file> on sdcard | |
2. put sdcard in device | |
3. reboot and hold down up arrow and power for 10s. | |
4. "apply update from external storage" - select <file> | |
5. "wipe data/factory reset" | |
6. reboot | |
Now you've got an unrooted phone. Let's install a su binary that gives us root. | |
1. download root-zte-open.zip (md5 cecc15bd0cc315633d066d81b44d7732) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var httpProxy = require('http-proxy'), | |
path = require('path'), | |
fs = require('fs'); | |
httpProxy.createServer(443, 'login.persona.org', { | |
https: { | |
key: fs.readFileSync(path.join(process.env['HOME'], 'key.pem'), 'utf8'), | |
cert: fs.readFileSync(path.join(process.env['HOME'], 'cert.pem'), 'utf8') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/gorilla/sessions" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.reduce = this.ArrayReduce || Array.prototype.reduce | |
var console = window.console | |
var global = this | |
function assert(actual, expected) { | |
if (arguments.length < 2 && actual) | |
return actual | |
if (actual === expected) | |
return actual | |
if (JSON.stringify(actual) == JSON.stringify(expected)) | |
return JSON.stringify(actual) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2010, The Barbarian Group | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that | |
the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, this list of conditions and | |
the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and |