in server/TenantManagementService/user-management.py [0:0]
def create_user_pool_client(self, user_pool_id):
user_pool_callback_url = os.environ['TENANT_USER_POOL_CALLBACK_URL']
response = client.create_user_pool_client(
UserPoolId= user_pool_id,
ClientName= 'ServerlessSaaSClient',
GenerateSecret= False,
AllowedOAuthFlowsUserPoolClient= True,
AllowedOAuthFlows=[
'code', 'implicit'
],
SupportedIdentityProviders=[
'COGNITO',
],
CallbackURLs=[
user_pool_callback_url,
],
LogoutURLs= [
user_pool_callback_url,
],
AllowedOAuthScopes=[
'email',
'openid',
'profile'
],
WriteAttributes=[
'email',
'custom:tenantId'
]
)
return response