rocket_oauth2
rocket_oauth2
helps set up OAuth 2.0 sign-in or authorization in
Rocket applications.
Quickstart Example
For more detailed examples and explanations, see the crate documentation and the
projects in the repository's examples
directory.
Code
use ;
use Request;
use Redirect;
use ;
;
Configuration (Rocket.toml
)
[]
= "GitHub"
= "..."
= "..."
= "http://localhost:8000/auth/github"
License
rocket_oauth2
is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)