Пример #1
0
    def get_app(self):
        from consoleme.config import config

        self.config = config
        from consoleme.routes import make_app

        return make_app(jwt_validator=lambda x: {})
Пример #2
0
    def get_app(self):
        from consoleme.config import config

        config.CONFIG.config["auth"]["get_user_by_password"] = True
        config.CONFIG.config["auth"]["set_auth_cookie"] = True
        from consoleme.routes import make_app

        return make_app(jwt_validator=lambda x: {})
Пример #3
0
def main():
    if config.get("sso.create_mock_jwk"):
        app = make_app(jwt_validator=lambda x: {})
    else:
        app = make_app()
    return app