Skip to content

Commit

Permalink
chore: update snapshots and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Jul 21, 2023
1 parent 78fa786 commit 96c5522
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
}
]
},
"oauth2_provider": {},
"oauth2_provider": {
"override_return_to": false
},
"selfservice": {
"allowed_return_urls": [],
"default_browser_return_url": "/ui/welcome",
Expand Down Expand Up @@ -115,6 +117,7 @@
},
"enabled": true,
"lifespan": "30m0s",
"notify_unknown_recipients": false,
"ui_url": "/ui/recovery",
"use": "code"
},
Expand All @@ -136,7 +139,11 @@
]
},
"webauthn": {
"hooks": []
"hooks": [
{
"hook": "session"
}
]
}
},
"before": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"client_credentials": {
"default_grant_allowed_scope": false
},
"exclude_not_before_claim": false,
"expose_internal_errors": true,
"grant": {
"jwt": {
Expand All @@ -31,8 +32,7 @@
"enforced_for_public_clients": true
},
"session": {
"encrypt_at_rest": true,
"exclude_not_before_claim": false
"encrypt_at_rest": true
}
},
"oidc": {
Expand Down Expand Up @@ -144,6 +144,7 @@
"consent": "/custom-consent",
"error": "/custom-error",
"login": "/custom-login",
"logout": "/ui/logout",
"post_logout_redirect": "/custom-logout"
},
"webfinger": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@
}
]
},
"oauth2_provider": {},
"oauth2_provider": {
"override_return_to": false
},
"selfservice": {
"allowed_return_urls": [],
"default_browser_return_url": "/ui/welcome",
"flows": {
"error": {
Expand Down Expand Up @@ -120,6 +121,7 @@
},
"enabled": true,
"lifespan": "30m0s",
"notify_unknown_recipients": false,
"ui_url": "/ui/recovery",
"use": "code"
},
Expand All @@ -141,7 +143,11 @@
]
},
"webauthn": {
"hooks": []
"hooks": [
{
"hook": "session"
}
]
}
},
"before": {
Expand Down Expand Up @@ -178,6 +184,7 @@
},
"enabled": true,
"lifespan": "30m0s",
"notify_unknown_recipients": false,
"ui_url": "/ui/custom-verification",
"use": "code"
}
Expand Down Expand Up @@ -280,6 +287,7 @@
"client_credentials": {
"default_grant_allowed_scope": false
},
"exclude_not_before_claim": false,
"expose_internal_errors": true,
"grant": {
"jwt": {
Expand All @@ -299,8 +307,7 @@
"enforced_for_public_clients": false
},
"session": {
"encrypt_at_rest": true,
"exclude_not_before_claim": false
"encrypt_at_rest": true
}
},
"oidc": {
Expand Down Expand Up @@ -412,6 +419,7 @@
"consent": "/ui/consent",
"error": "/ui/error",
"login": "/ui/login",
"logout": "/ui/logout",
"post_logout_redirect": "/oauth2/fallbacks/logout"
},
"webfinger": {
Expand Down
5 changes: 3 additions & 2 deletions cmd/cloudx/project/fixtures/update-hydra/json/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"client_credentials": {
"default_grant_allowed_scope": false
},
"exclude_not_before_claim": false,
"expose_internal_errors": true,
"grant": {
"jwt": {
Expand All @@ -31,8 +32,7 @@
"enforced_for_public_clients": true
},
"session": {
"encrypt_at_rest": true,
"exclude_not_before_claim": false
"encrypt_at_rest": true
}
},
"oidc": {
Expand Down Expand Up @@ -144,6 +144,7 @@
"consent": "/custom-consent",
"error": "/custom-error",
"login": "/custom-login",
"logout": "/ui/logout",
"post_logout_redirect": "/custom-logout"
},
"webfinger": {
Expand Down
3 changes: 2 additions & 1 deletion cmd/cloudx/project/fixtures/update/json/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
"enabled": true,
"lifespan": "30m0s",
"notify_unkown_recipients": false,
"notify_unknown_recipients": false,
"ui_url": "/ui/recovery",
"use": "code"
},
Expand Down Expand Up @@ -288,6 +288,7 @@
"client_credentials": {
"default_grant_allowed_scope": false
},
"exclude_not_before_claim": false,
"expose_internal_errors": true,
"grant": {
"jwt": {
Expand Down
13 changes: 11 additions & 2 deletions cmd/cloudx/project/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,23 @@ func TestUpdateProject(t *testing.T) {
"services.oauth2.config.serve.cookies.domain",
"services.oauth2.config.urls.self",
"services.oauth2.config.oauth2.session",
"services.identity.config.selfservice.allowed_return_urls.0",
"services.identity.config.selfservice.allowed_return_urls",

// THERE IS A LIMITATION IN ASSERTX THAT DOES NOT ALLOW A DEPTH MORE THAN 5
// THAT IS WHY WE IGNORE THIS KEY HERE.
// TODO: FIX THIS
"services.identity.config.selfservice.flows.login.after.webauthn.hooks",
"services.identity.config.selfservice.flows.registration.after.webauthn.hooks",

// for kratos cmd
"serve",
"cookies",
"identity.default_schema_id",
"identity.schemas",
"session.cookie",
"courier.smtp.from_name",
"selfservice.allowed_return_urls",

// for keto cmd
// for hydra cmd
"serve.cookies.names",
Expand All @@ -116,7 +125,7 @@ func TestUpdateProject(t *testing.T) {
"services.oauth2.config.serve.cookies.names",
"services.oauth2.config.serve.cookies.domain",
"services.oauth2.config.urls.self",
"services.identity.config.selfservice.allowed_return_urls.0",
"services.identity.config.selfservice.allowed_return_urls",
// for kratos cmd
"serve.public.base_url",
"serve.admin.base_url",
Expand Down

0 comments on commit 96c5522

Please sign in to comment.