Add GitHub example
This commit is contained in:
parent
eb8d3ab7b0
commit
f3cdd6142d
|
@ -0,0 +1,16 @@
|
|||
extern crate inth_oauth2;
|
||||
|
||||
use inth_oauth2::client::Client;
|
||||
use inth_oauth2::provider::GitHub;
|
||||
|
||||
fn main() {
|
||||
let client = Client::<GitHub>::new(
|
||||
Default::default(),
|
||||
"01774654cd9a6051e478",
|
||||
"9f14d16d95d605e715ec1a9aecec220d2565fd5c",
|
||||
Some("https://cmcenroe.me/oauth2-paste/")
|
||||
);
|
||||
|
||||
let auth_uri = client.auth_uri(Some("user"), None).unwrap();
|
||||
println!("{}", auth_uri);
|
||||
}
|
Loading…
Reference in New Issue