module JWT
Extended Modules
Defined in:
jwt.crjwt/errors.cr
jwt/version.cr
Constant Summary
-
VERSION =
"0.4.0"
Instance Method Summary
-
#asn1_to_raw(signature : Bytes, private_key : OpenSSL::PKey::EC) : Bytes
OpenSSL returns signatures encoded as ASN.1 values However the JWT specification requires these to be raw integers
- #decode(token : String, key : String = "", algorithm : Algorithm = Algorithm::None, verify = true, validate = true, **options) : Tuple
- #decode(token : String, algorithm : Algorithm | Nil = nil, verify = true, validate = true, **options, &) : Tuple
- #encode(payload, key : String, algorithm : Algorithm, **header_keys) : String
- #encode_header(algorithm : Algorithm, **keys) : String
- #encode_payload(payload) : String
- #encoded_signature(algorithm : Algorithm, key : String, data : String)
- #raw_to_asn1(signature : Bytes, public_key : OpenSSL::PKey::EC) : Bytes
-
#sign(algorithm : Algorithm, key : String, data : String)
ameba:disable Metrics/CyclomaticComplexity
Instance Method Detail
def asn1_to_raw(signature : Bytes, private_key : OpenSSL::PKey::EC) : Bytes
#
OpenSSL returns signatures encoded as ASN.1 values However the JWT specification requires these to be raw integers
def decode(token : String, key : String = "", algorithm : Algorithm = Algorithm::None, verify = true, validate = true, **options) : Tuple
#
def decode(token : String, algorithm : Algorithm | Nil = nil, verify = true, validate = true, **options, &) : Tuple
#
ameba:disable Metrics/CyclomaticComplexity