File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
openapi_server/controllers Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ COGNITO_USER_POOL_ID=
66SECRET_KEY =
77COGNITO_ACCESS_ID =
88COGNITO_ACCESS_KEY =
9- URL = http://localhost:4040
9+ ROOT_URL = http://localhost:4040
Original file line number Diff line number Diff line change 2929COGNITO_ACCESS_ID = env .get ('COGNITO_ACCESS_ID' )
3030COGNITO_ACCESS_KEY = env .get ('COGNITO_ACCESS_KEY' )
3131SECRET_KEY = env .get ('SECRET_KEY' )
32- URL = env .get ('URL ' )
32+ ROOT_URL = env .get ('ROOT_URL ' )
3333cognito_client_url = 'https://homeuniteus.auth.us-east-1.amazoncognito.com'
3434
3535
@@ -155,7 +155,7 @@ def signin():
155155 if (response .get ('ChallengeName' ) and response ['ChallengeName' ] == 'NEW_PASSWORD_REQUIRED' ):
156156 userId = response ['ChallengeParameters' ]['USER_ID_FOR_SRP' ]
157157 sessionId = response ['Session' ]
158- return redirect (f"{ URL } /create-password?userId={ userId } &sessionId={ sessionId } " )
158+ return redirect (f"{ ROOT_URL } /create-password?userId={ userId } &sessionId={ sessionId } " )
159159
160160 access_token = response ['AuthenticationResult' ]['AccessToken' ]
161161 refresh_token = response ['AuthenticationResult' ]['RefreshToken' ]
@@ -424,9 +424,9 @@ def confirm_signup():
424424 ConfirmationCode = code
425425 )
426426
427- return redirect (f"{ URL } /email-verification-success" )
427+ return redirect (f"{ ROOT_URL } /email-verification-success" )
428428 except Exception as e :
429- return redirect (f"{ URL } /email-verification-error" )
429+ return redirect (f"{ ROOT_URL } /email-verification-error" )
430430
431431# What comes first invite or adding the user
432432#Do I have an oauth token
You can’t perform that action at this time.
0 commit comments