OAuth2 integration for Rocket applications
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Jeb Rosen fff1fdda87 Improve documentation on Provider specification. il y a 1 mois
examples Add a full example for custom provider configuration. il y a 1 mois
src Improve documentation on Provider specification. il y a 1 mois
.gitignore Initial publish to GitHub. il y a 1 an
CHANGELOG.md Prepare 0.2.0-rc.1 release. il y a 5 mois
Cargo.toml Add a full example for custom provider configuration. il y a 1 mois
LICENSE-APACHE Initial publish to GitHub. il y a 1 an
LICENSE-MIT Initial publish to GitHub. il y a 1 an
README.md Initial publish to GitHub. il y a 1 an

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: