upgrade: make changes to be compatible with Kratos 0.9.0-alpha.3
This commit is contained in:
parent
caa7e0005c
commit
c120ab603a
4 changed files with 10 additions and 8 deletions
|
@ -236,7 +236,7 @@ cat source_env.local
|
||||||
|
|
||||||
export HYDRA_ADMIN_URL=http://localhost:4445
|
export HYDRA_ADMIN_URL=http://localhost:4445
|
||||||
export KRATOS_PUBLIC_URL=http://localhost/api
|
export KRATOS_PUBLIC_URL=http://localhost/api
|
||||||
export KRATOS_ADMIN_URL=http://localhost:8000
|
export KRATOS_ADMIN_URL=http://localhost:8000/admin
|
||||||
export LOGIN_PANEL_URL=http://localhost/web
|
export LOGIN_PANEL_URL=http://localhost/web
|
||||||
export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin"
|
export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin"
|
||||||
```
|
```
|
||||||
|
|
|
@ -31,7 +31,7 @@ tomli==1.2.3
|
||||||
typing-extensions==4.1.1
|
typing-extensions==4.1.1
|
||||||
urllib3==1.26.8
|
urllib3==1.26.8
|
||||||
Werkzeug==2.0.3
|
Werkzeug==2.0.3
|
||||||
ory-kratos-client==0.8.0a2
|
ory-kratos-client==0.9.0a2
|
||||||
pymysql
|
pymysql
|
||||||
Flask-SQLAlchemy
|
Flask-SQLAlchemy
|
||||||
hydra-client
|
hydra-client
|
||||||
|
|
|
@ -28,7 +28,7 @@ export TOKEN_URL="https://sso.init.stackspin.net/oauth2/token"
|
||||||
|
|
||||||
# Login facilitator paths
|
# Login facilitator paths
|
||||||
export KRATOS_PUBLIC_URL=http://localhost/kratos
|
export KRATOS_PUBLIC_URL=http://localhost/kratos
|
||||||
export KRATOS_ADMIN_URL=http://localhost:8000
|
export KRATOS_ADMIN_URL=http://localhost:8000/admin
|
||||||
export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
|
export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
|
||||||
export HYDRA_ADMIN_URL=http://localhost:4445
|
export HYDRA_ADMIN_URL=http://localhost:4445
|
||||||
export LOGIN_PANEL_URL=http://localhost/web/
|
export LOGIN_PANEL_URL=http://localhost/web/
|
||||||
|
|
|
@ -56,8 +56,8 @@ function flow_login() {
|
||||||
url: uri,
|
url: uri,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|
||||||
// Render login form (group: password)
|
// Render login form (group: profile)
|
||||||
var html = render_form(data, 'password');
|
var html = render_form(data, 'profile');
|
||||||
$("#contentLogin").html(html);
|
$("#contentLogin").html(html);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -134,10 +134,12 @@ function flow_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FIXME: This seems to be not necessary anymore in kratos 0.9.0
|
||||||
|
// because they moved the password field to the profile group
|
||||||
// Render the password & profile form based on the fields we got
|
// Render the password & profile form based on the fields we got
|
||||||
// from the API
|
// from the API
|
||||||
var html = render_form(data, 'password');
|
// var html = render_form(data, 'profile');
|
||||||
$("#contentPassword").html(html);
|
// $("#contentPassword").html(html);
|
||||||
|
|
||||||
html = render_form(data, 'profile');
|
html = render_form(data, 'profile');
|
||||||
$("#contentProfile").html(html);
|
$("#contentProfile").html(html);
|
||||||
|
@ -309,7 +311,7 @@ function getFormElement(type, name, value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (name == 'password_identifier') {
|
if (name == 'identifier') {
|
||||||
return getFormInput(
|
return getFormInput(
|
||||||
'email',
|
'email',
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue