Skip to content
OAuth2 for Rocket applications
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/user_info_hyper_sync_rustls
src
.gitignore
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md

README.md

rocket_oauth2

rocket_oauth2 makes it easy to use OAuth2 in Rocket applications:

  • Facilitates OAuth 2.0 client functionality to obtain authorization from users.
  • Handles the authorization callback and token exchange.
  • Runs an application-specific callback when a token has been successfully obtained.
  • Optionally mounts a login route that redirects to the authorization endpoint.
  • Supports attachment of multiple callbacks and service providers.

Example

See the examples directory for more details, including the implementations of GitHubCallback and GoogleCallback.

License

rocket_oauth2 is licensed under either of the following, at your option:

You can’t perform that action at this time.