#actix-web #oauth2 #basic-authentication #jwt #oauth #openid #actix

actix-web-security

Basic-Auth / OAuth2 easy-to-use authentication modules for actix web

4 releases

new 0.1.2 Nov 13, 2024
0.1.1 Nov 13, 2024
0.1.0 May 2, 2021
0.1.0-alpha.2 Feb 12, 2021
0.1.0-alpha.1 Feb 11, 2021

#11 in #basic-authentication

Download history 11/week @ 2024-08-26 19/week @ 2024-09-02 15/week @ 2024-09-23 2/week @ 2024-11-04 226/week @ 2024-11-11

228 downloads per month

MIT/Apache

51KB
915 lines

Actix web security

This crate is deprecated. It will receive no bugfixes or updates.


lib.rs:

actix-web-security

Basic-Auth / OAuth2 easy-to-use authentication modules for actix web.

Features

  • HTTP Authentication with the following authentication schemes
    • Basic Authentication
    • Bearer Authentication
  • OAuth2 Resource Server "Auto-Configuration"
  • JWK-Downloader to verify JWTs
  • JWT verification

Note: Neither audited nor penetration tested

This library is provided "as is" without warranties of any kind and is not verified to be secure. It has neither been audited to be safe in an audit nor been penetration tested. The library was developed to the best of knowledge and belief. It's in your own responsibility to check the code for potential security issues or bugs and your own decision whether you see the code as safe and trustworthy or whether you prefer to not use it. The library is provided as open-source and the liability of any kind is excluded as described in the licenses the software is provided under.

Install

Add the following dependency to your cargo.toml.

actix-web-security = "0.1.0"

The following features can be activated:

  • jwk-loader
    This feature can be activated to download custom JWKs from an authorization server

    actix-web-security = { version="0.1.0", features = ["jwk-loader"] }
    
  • jwk-default-loader
    This feature can be activated to download DefaultJwks from an authorization server.

    actix-web-security = { version="0.1.0", features = ["jwk-default-loader"] }
    

Both features require openssl to be installed on the system. The documentation about how to install it can be found here.

Samples

Sample applications can be found here.

Dependencies

~32–48MB
~1M SLoC