This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2022 PaperNick | |
* | |
* Resouces used: | |
* https://github.com/auth0/node-jwks-rsa | |
* https://github.com/auth0/node-jsonwebtoken | |
* https://auth0.com/blog/navigating-rs256-and-jwks/ | |
* https://gist.github.com/westmark/faee223e05bcbab433bfd4ed8e36fb5f | |
* https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from enum import Enum, EnumMeta, IntEnum, unique | |
def not_callable_in_template(cls): | |
"""Disable the callable behavior of Enum in django templates""" | |
cls.do_not_call_in_templates = True | |
return cls | |
class ChoiceEnumMeta(EnumMeta): |