Crates.io | eve_oauth2 |
lib.rs | eve_oauth2 |
version | 0.2.0 |
source | src |
created_at | 2023-07-17 09:41:38.832745 |
updated_at | 2024-04-01 02:05:47.679016 |
description | Black Rose's OAuth2 implementation for EVE Online SSO |
homepage | |
repository | https://github.com/blackrose-eve/eve_oauth2 |
max_upload_size | |
id | 918353 |
size | 67,137 |
Black Rose's 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 axum
http://localhost:8000/login