William Orr 47b68cf401 fix(rustup): workaround rustlang bug
Due to https://github.com/rust-lang/rust/issues/22252, r-value
temporaries outlive the lifetimes of variables bound with let
statements in a function body. Because of this, device.rs fails to
compile against newer rustc nightlies.

This implements a simple workaround that binds the result of the match
in `request_code` to a local variable before returning it. This allows
it to have the same lifetime as `req` in one of the previous let
bindings.
2015-05-10 18:15:21 -07:00
2015-05-10 18:15:21 -07:00
2015-05-08 11:41:26 +02:00
2015-05-08 11:41:26 +02:00
2015-05-08 11:41:26 +02:00

Build Status

yup-oauth2 is a utility library which will implement oauthv2 device authentication suitable for yup to work.

It is implemented such that it makes no assumptions about the front-end, allowing more uses than just in yup.

Usage

Please have a look at the API landing page for all the examples you will ever need.

A simple commandline program which authenticates any scope and prints token information can be found in the examples directory.

The video below shows the auth example in action. It's meant to be used as utility to record all server communication and improve protocol compliance.

usage

Description
No description provided
Readme 996 KiB
Languages
Rust 99.2%
Shell 0.8%