B ]@s.ddlZddlZddlZdZGdddZdS)Nz$af92fb8f-ebbf-4df6-a54f-6355b0e9ea28c@s8eZdZddZeddZeddZeddZd S) UtilscCsdS)N)selfrrW/Users/shaanubh/Documents/code/aws-serverless-saas-layers/Solution/Lab3/client/utils.py__init__ szUtils.__init__cCst||dS)N)random randrange)startendrrrrandom_integerszUtils.random_integercCs*tjdtdddgitdd}|dS)NZtenantIdZtenant1Ztenant2Ztenant3ZHS256) algorithmzutf-8)jwtencoderchoice SECRET_KEYdecode)Z encoded_jwtrrr create_jwts zUtils.create_jwtcCsddtdS)Nzapplication/jsonzBearer )z Content-Type Authorization)rrrrrr get_headersszUtils.get_headersN)__name__ __module__ __qualname__r staticmethodr rrrrrrr s  r)rrrrrrrrs