"Rustify-Auth is a lightweight OAuth 2.0 & 2.1 authorization server in Rust, designed with educational goals in mind. It supports Authorization Code + PKCE, Client Credentials, Refresh Tokens, secure JWT token generation, and Post-Quantum Cryptography (PQC) for enhanced future-proof security.
MIT License
8
stars
4
forks
source link
Implement unit tests for client credentials grant and storage mock #21
Added unit tests for , covering scenarios like invalid grant types, invalid client credentials, successful token issuance, and token issuance failures.
Added unit tests for to simulate client storage for client credentials validation.
Implemented a custom deserializer for in to handle values as empty strings, ensuring smooth deserialization.
Adjusted the struct to use a custom deserializer for .
Updated related functions and tests to check for empty strings instead of for .