oauth-token-proxy

command module
v0.0.0-...-bb65fed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2015 License: MIT Imports: 14 Imported by: 0

README

oauth-token-proxy

Build Status

A thin proxy for OAuth-secured (JSON) REST APIs.

Motivation

oauth-token-proxy enables mobile apps and single-page web apps (SPAs) to use the OAuth authorization code flow without exposing their client credentials.

Limitations

oauth-proxy refuses to wrap non-JSON APIs. It enforces this by rejecting all requests with Content-Type headers other than application/json. It does this to protect against CSRF attacks. (In general, browsers cannot send cross-origin JSON requests.)

A "synchronizer token"-based approach would enable oauth-proxy to wrap non-JSON APIs, at the cost of minor implementation overhead. (This approach would also protect against browser security bugs.) If you're interested in implementing this, let me know! I'm happy to accept a patch.

Installation

go get -u github.com/paulrosania/oauth-token-proxy

Documentation

Full API documentation is available here:

https://godoc.org/github.com/paulrosania/oauth-token-proxy

Thanks

Contributing

  1. Fork the project
  2. Make your changes
  3. Run tests (go test)
  4. Send a pull request!

If you're making a big change, please open an issue first, so we can discuss.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL