tokkit 0.13.0

A simple(simplistic) OAUTH toolkit.
Documentation

tokkit

crates.io docs.rs downloads build Status license-mit license-apache

tokkit is a simple(even simplistic) token toolkit for OAUTH2 token introspection

Adding tokkit to your project

tokkit is available on crates.io.

Documentation

The documentation is available online.

Features

  • async: Adds a hyper based async client. See also TokenInfoServiceClientBuilder
  • metrix: Add support for the metrix crate(async client only) See also TokenInfoServiceClientBuilder

Verify Access Tokens

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();

Recent changes

  • 0.13.0
    • parser does not need the http client in an Arc* 0.12.1
  • 0.12.1
    • async client does not need the http client in an Arc
  • 0.12.0
    • async client is not sync anymore and should be cloned
  • 0.11.0
    • updated metrix

License

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