mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-07 19:47:03 +01:00
a260b13868aaf667ef5379e4223ec0c94b78e26b
* Previously the meta-data was applied to the crate, which doesn't seem to work. * attempted to make `examples/auth.rs` work on stable. This isn't properly tested now, as tests don't compile. We are now at a state were stable as well as nightly work similarly, but fail because `include!` doesn't behave correctly if macros are involved. Namely it happens before crates are linked, yet it will try to expand macros right away, which is a problem. If the macro is defined in an empty fashion, it will actually be used at include time, and expanded. Which causes issues further down the compilation. With the current 'fix' we manage to at least make everything but `cargo test` work. Related to #12
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.
Description
Languages
Rust
99.2%
Shell
0.8%
