rename PUBLIC_URL to a more meaningful variable name
This commit is contained in:
parent
a7fb3ab28d
commit
2564f3aae6
4 changed files with 5 additions and 5 deletions
|
@ -237,7 +237,7 @@ cat source_env.local
|
|||
export HYDRA_ADMIN_URL=http://localhost:4445
|
||||
export KRATOS_PUBLIC_URL=http://localhost/api
|
||||
export KRATOS_ADMIN_URL=http://localhost:8000
|
||||
export PUBLIC_URL=http://localhost/login
|
||||
export LOGIN_PANEL_URL=http://localhost/web
|
||||
export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin"
|
||||
```
|
||||
|
||||
|
|
|
@ -176,13 +176,13 @@ def auth():
|
|||
# The redirect URL is back to this page (auth) with the same challenge
|
||||
# so we can pickup the flow where we left off.
|
||||
if not identity:
|
||||
url = PUBLIC_URL + "/auth?login_challenge=" + challenge
|
||||
url = LOGIN_PANEL_URL + "/auth?login_challenge=" + challenge
|
||||
url = urllib.parse.quote_plus(url)
|
||||
|
||||
current_app.logger.info("Redirecting to login. Setting flow_state cookies")
|
||||
current_app.logger.info("auth_url: " + url)
|
||||
|
||||
response = redirect(PUBLIC_URL + "/login")
|
||||
response = redirect(LOGIN_PANEL_URL + "/login")
|
||||
response.set_cookie('flow_state', 'auth')
|
||||
response.set_cookie('auth_url', url)
|
||||
return response
|
||||
|
|
|
@ -6,7 +6,7 @@ HYDRA_CLIENT_SECRET = os.environ.get("HYDRA_CLIENT_SECRET")
|
|||
HYDRA_AUTHORIZATION_BASE_URL = os.environ.get("HYDRA_AUTHORIZATION_BASE_URL")
|
||||
TOKEN_URL = os.environ.get("TOKEN_URL")
|
||||
|
||||
PUBLIC_URL = os.environ.get('PUBLIC_URL')
|
||||
LOGIN_PANEL_URL = os.environ.get('LOGIN_PANEL_URL')
|
||||
|
||||
HYDRA_PUBLIC_URL = os.environ.get("HYDRA_PUBLIC_URL")
|
||||
HYDRA_ADMIN_URL = os.environ.get('HYDRA_ADMIN_URL')
|
||||
|
|
|
@ -31,7 +31,7 @@ export KRATOS_PUBLIC_URL=http://localhost/kratos
|
|||
export KRATOS_ADMIN_URL=http://localhost:8000
|
||||
export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
|
||||
export HYDRA_ADMIN_URL=http://localhost:4445
|
||||
export PUBLIC_URL=http://localhost/web/
|
||||
export LOGIN_PANEL_URL=http://localhost/web/
|
||||
#export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin?charset=utf8mb4"
|
||||
export DATABASE_URL="mysql+pymysql://stackspin:IRvqAzhKMEdIBUUAWulIfZJLQgclLQDm@localhost/stackspin"
|
||||
|
||||
|
|
Loading…
Reference in a new issue