OAuth2 integration for Rocket applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeb Rosen 5028ba4a73 Prepare 0.2.0-rc.1 release. 1 month ago
examples/user_info_hyper_sync_rustls Reformat code. 1 month ago
src Use 'ring' and 'base64' instead of 'rand' for state generation. 1 month ago
.gitignore Initial publish to GitHub. 1 year ago
CHANGELOG.md Prepare 0.2.0-rc.1 release. 1 month ago
Cargo.toml Prepare 0.2.0-rc.1 release. 1 month ago
LICENSE-APACHE Initial publish to GitHub. 1 year ago
LICENSE-MIT Initial publish to GitHub. 1 year ago
README.md Initial publish to GitHub. 1 year ago

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: