upgrade: make changes to be compatible with Kratos 0.9.0-alpha.3

This commit is contained in:
Maarten de Waard 2022-04-29 12:34:12 +02:00
parent caa7e0005c
commit c120ab603a
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA
4 changed files with 10 additions and 8 deletions

View file

@ -236,7 +236,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 KRATOS_ADMIN_URL=http://localhost:8000/admin
export LOGIN_PANEL_URL=http://localhost/web
export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin"
```

View file

@ -31,7 +31,7 @@ tomli==1.2.3
typing-extensions==4.1.1
urllib3==1.26.8
Werkzeug==2.0.3
ory-kratos-client==0.8.0a2
ory-kratos-client==0.9.0a2
pymysql
Flask-SQLAlchemy
hydra-client

View file

@ -28,7 +28,7 @@ export TOKEN_URL="https://sso.init.stackspin.net/oauth2/token"
# Login facilitator paths
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_ADMIN_URL=http://localhost:4445
export LOGIN_PANEL_URL=http://localhost/web/

View file

@ -56,8 +56,8 @@ function flow_login() {
url: uri,
success: function(data) {
// Render login form (group: password)
var html = render_form(data, 'password');
// Render login form (group: profile)
var html = render_form(data, 'profile');
$("#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
// from the API
var html = render_form(data, 'password');
$("#contentPassword").html(html);
// var html = render_form(data, 'profile');
// $("#contentPassword").html(html);
html = render_form(data, 'profile');
$("#contentProfile").html(html);
@ -309,7 +311,7 @@ function getFormElement(type, name, value) {
}
if (name == 'password_identifier') {
if (name == 'identifier') {
return getFormInput(
'email',
name,