Crates.io | tokkit |
lib.rs | tokkit |
version | 0.17.0 |
source | src |
created_at | 2017-07-19 20:16:03.120241 |
updated_at | 2020-01-18 15:48:53.818459 |
description | A simple(simplistic) OAUTH toolkit. |
homepage | https://github.com/chridou/tokkit |
repository | https://github.com/chridou/tokkit |
max_upload_size | |
id | 24179 |
size | 194,092 |
tokkit
is a simple(even simplistic) token toolkit for OAUTH2 token
introspection
tokkit is available on crates.io.
The documentation is available online.
async
: Adds a reqwest
based async client.
See also TokenInfoServiceClientBuilder
metrix
: Add support for the metrix
crate(async client only)
See also TokenInfoServiceClientBuilder
tokkit
contains a module token_info
for protected resources to verify access tokens.
use tokkit::*;
use tokkit::client::*;
let builder = TokenInfoServiceClientBuilder::google_v3();
let service = builder.build().unwrap();
let token = AccessToken::new("<token>");
let tokeninfo = service.introspect(&token).unwrap();
metrix
feature to 0.10
(breaking change in metrix
)tokkit is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
Copyright (c) 2017 Christian Douven Token verification for protected resources on resource servers.
See OAuth 2.0 Token Introspection and Roles
License: Apache-2.0/MIT