| Crates.io | eve_oauth2 |
| lib.rs | eve_oauth2 |
| version | 0.2.1 |
| created_at | 2023-07-17 09:41:38.832745+00 |
| updated_at | 2025-09-09 11:10:42.316454+00 |
| description | OAuth2 implementation for EVE Online SSO |
| homepage | |
| repository | https://github.com/hyziri/eve_oauth2 |
| max_upload_size | |
| id | 918353 |
| size | 78,033 |
This crate has been deprecated due to merging with the eve_esi crate which offers a more complete, stable, and better documented OAuth2 API complete with proper caching & refreshing in addition to APIs for accessing ESI routes themselves.
The decision to merge the crates was made in order to share the same Client for better ease of use in regards to handling access & refresh tokens for authenticated ESI routes.
Implementation of an OAuth2 method for authenticating with EVE Online's SSO for use with your preferred Rust web framework.
You will need the following API routes:
localhost:8000/login)
create_login_url function to get the login link for the pagecreate_login_url in a sessionlocalhost:8000/callback?code=...&state=...)
get_access_token function which uses the application client id & client secret & the code returned in the redirect to retrieve an access tokenvalidate_access_token function to validate the token & to access the data within the token you can use in your application to verify the userSee the axum example to see the implementation above in action.
To test out the axum example:
cargo run --example axumhttp://localhost:8000/login