Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Return Dict Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Pass Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str keyword NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad kwarg body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad Call NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr
N/A N/A binascii N/A json N/A warnings collections Mapping algorithms Algorithm get_default_algorithms compat binary_type string_types text_type exceptions DecodeError InvalidAlgorithmError InvalidTokenError utils base64url_decode base64url_encode merge_dict PyJWS N/A object N/A N/A header_typ JWT __init__ N/A N/A self algorithms options N/A None None N/A N/A N/A self _algorithms N/A get_default_algorithms N/A N/A self _valid_algs N/A N/A algorithms None N/A set algorithms N/A set N/A self _algorithms N/A key N/A list N/A N/A N/A self _algorithms keys N/A N/A N/A key N/A self _valid_algs N/A N/A N/A N/A self _algorithms N/A key N/A N/A options N/A N/A options N/A N/A N/A self options N/A merge_dict N/A N/A self _get_default_options options N/A _get_default_options N/A N/A N/A N/A N/A N/A verify_signature True N/A staticmethod register_algorithm N/A N/A self alg_id alg_obj N/A N/A N/A 
        Registers a new Algorithm for use when creating and verifying tokens.
         N/A N/A alg_id N/A self _algorithms N/A N/A N/A ValueError Algorithm already has a handler. N/A N/A N/A isinstance alg_obj Algorithm N/A N/A N/A TypeError Object is not of type `Algorithm` N/A N/A N/A self _algorithms N/A alg_id alg_obj N/A N/A N/A N/A self _valid_algs add alg_id N/A unregister_algorithm N/A N/A self alg_id N/A N/A N/A 
        Unregisters an Algorithm for use when creating and verifying tokens
        Throws KeyError if algorithm is not registered.
         N/A N/A alg_id N/A self _algorithms N/A N/A N/A KeyError The specified algorithm could not be removed because it is not registered. N/A N/A N/A self _algorithms N/A alg_id N/A N/A N/A N/A self _valid_algs remove alg_id N/A get_algorithms N/A N/A self N/A N/A N/A 
        Returns a list of supported values for the 'alg' parameter.
         N/A N/A list N/A self _valid_algs N/A encode N/A N/A self payload key algorithm headers json_encoder N/A HS256 None None N/A N/A segments N/A N/A N/A algorithm None N/A N/A algorithm none N/A N/A algorithm N/A self _valid_algs N/A N/A N/A header N/A typ alg N/A self header_typ algorithm N/A headers N/A N/A N/A N/A self _validate_headers headers N/A N/A N/A header update headers N/A json_header N/A N/A N/A N/A json dumps header separators N/A , : cls json_encoder encode utf-8 N/A N/A N/A segments append N/A base64url_encode json_header N/A N/A N/A segments append N/A base64url_encode payload N/A signing_input N/A N/A . join segments N/A N/A N/A alg_obj N/A N/A self _algorithms N/A algorithm N/A key N/A N/A alg_obj prepare_key key N/A signature N/A N/A alg_obj sign signing_input key N/A N/A N/A KeyError N/A N/A N/A NotImplementedError Algorithm not supported N/A N/A N/A segments append N/A base64url_encode signature N/A N/A N/A . join segments N/A decode N/A N/A self jws key verify algorithms options N/A True None None kwargs N/A N/A N/A payload signing_input header signature N/A N/A self _load jws N/A verify N/A N/A merged_options N/A merge_dict N/A self options options N/A N/A N/A merged_options get verify_signature N/A N/A N/A N/A self _verify_signature payload signing_input header signature key algorithms N/A N/A N/A N/A warnings warn The verify parameter is deprecated. Please use options instead. DeprecationWarning N/A payload N/A get_unverified_header N/A N/A self jwt N/A N/A N/A Returns back the JWT header parameters as a dict()

        Note: The signature is not verified so the header parameters
        should not be fully trusted until signature verification is complete
         N/A headers N/A N/A N/A self _load jwt N/A 2 N/A N/A N/A self _validate_headers headers N/A headers N/A _load N/A N/A self jwt N/A N/A N/A N/A isinstance jwt text_type N/A N/A jwt N/A N/A jwt encode utf-8 N/A N/A N/A issubclass N/A type jwt binary_type N/A N/A N/A DecodeError N/A N/A Invalid token type. Token must be a {0} format binary_type N/A N/A N/A N/A signing_input crypto_segment N/A N/A jwt rsplit . 1 N/A N/A header_segment payload_segment N/A N/A signing_input split . 1 N/A N/A N/A ValueError N/A N/A N/A DecodeError Not enough segments N/A N/A N/A header_data N/A base64url_decode header_segment N/A N/A N/A N/A TypeError N/A binascii Error N/A N/A N/A DecodeError Invalid header padding N/A N/A N/A header N/A N/A json loads N/A N/A header_data decode utf-8 N/A N/A N/A ValueError N/A e N/A N/A N/A DecodeError N/A Invalid header string: %s e N/A N/A N/A isinstance header Mapping N/A N/A N/A DecodeError Invalid header string: must be a json object N/A N/A N/A payload N/A base64url_decode payload_segment N/A N/A N/A N/A TypeError N/A binascii Error N/A N/A N/A DecodeError Invalid payload padding N/A N/A N/A signature N/A base64url_decode crypto_segment N/A N/A N/A N/A TypeError N/A binascii Error N/A N/A N/A DecodeError Invalid crypto padding N/A N/A payload signing_input header signature N/A _verify_signature N/A N/A self payload signing_input header signature key algorithms N/A None N/A N/A alg N/A N/A header get alg N/A N/A N/A algorithms None N/A alg algorithms N/A N/A N/A InvalidAlgorithmError The specified alg value is not allowed N/A N/A N/A alg_obj N/A N/A self _algorithms N/A alg N/A key N/A N/A alg_obj prepare_key key N/A N/A N/A N/A alg_obj verify signing_input key signature N/A N/A N/A DecodeError Signature verification failed N/A N/A N/A KeyError N/A N/A N/A InvalidAlgorithmError Algorithm not supported N/A _validate_headers N/A N/A self headers N/A N/A N/A N/A kid headers N/A N/A N/A N/A self _validate_kid N/A headers N/A kid N/A _validate_kid N/A N/A self kid N/A N/A N/A N/A N/A isinstance kid string_types N/A N/A N/A InvalidTokenError Key ID header parameter must be a string N/A N/A N/A _jws_global_obj N/A PyJWS N/A encode N/A _jws_global_obj encode N/A decode N/A _jws_global_obj decode N/A register_algorithm N/A _jws_global_obj register_algorithm N/A unregister_algorithm N/A _jws_global_obj unregister_algorithm N/A get_unverified_header N/A _jws_global_obj get_unverified_header