Skip to content

Commit e80f38d

Browse files
authored
Merge pull request #11592 from owncloud/keycloak_stepup_flow_example
feat: add step up auth flow in keycloak example
2 parents af9eba6 + 387ea2e commit e80f38d

File tree

1 file changed

+143
-1
lines changed

1 file changed

+143
-1
lines changed

deployments/examples/ocis_keycloak/config/keycloak/ocis-realm.dist.json

Lines changed: 143 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@
10761076
"email"
10771077
],
10781078
"optionalClientScopes": [
1079+
"acr",
10791080
"address",
10801081
"phone",
10811082
"offline_access",
@@ -1136,6 +1137,7 @@
11361137
"email"
11371138
],
11381139
"optionalClientScopes": [
1140+
"acr",
11391141
"address",
11401142
"phone",
11411143
"offline_access",
@@ -1288,6 +1290,7 @@
12881290
"email"
12891291
],
12901292
"optionalClientScopes": [
1293+
"acr",
12911294
"address",
12921295
"phone",
12931296
"offline_access",
@@ -2157,6 +2160,128 @@
21572160
"internationalizationEnabled": false,
21582161
"supportedLocales": [],
21592162
"authenticationFlows": [
2163+
{
2164+
"id" : "5392b282-096e-4994-a3ad-780eb4023d27",
2165+
"alias" : "step up flow",
2166+
"description" : "browser login flow with step-up mechanism",
2167+
"providerId" : "basic-flow",
2168+
"topLevel" : true,
2169+
"builtIn" : false,
2170+
"authenticationExecutions" : [
2171+
{
2172+
"authenticator" : "auth-cookie",
2173+
"authenticatorFlow" : false,
2174+
"requirement" : "ALTERNATIVE",
2175+
"priority" : 20,
2176+
"autheticatorFlow" : false,
2177+
"userSetupAllowed" : false
2178+
},
2179+
{
2180+
"authenticator" : "auth-spnego",
2181+
"authenticatorFlow" : false,
2182+
"requirement" : "DISABLED",
2183+
"priority" : 25,
2184+
"autheticatorFlow" : false,
2185+
"userSetupAllowed" : false
2186+
},
2187+
{
2188+
"authenticator" : "identity-provider-redirector",
2189+
"authenticatorFlow" : false,
2190+
"requirement" : "ALTERNATIVE",
2191+
"priority" : 30,
2192+
"autheticatorFlow" : false,
2193+
"userSetupAllowed" : false
2194+
},
2195+
{
2196+
"authenticatorFlow" : true,
2197+
"requirement" : "ALTERNATIVE",
2198+
"priority" : 31,
2199+
"autheticatorFlow" : true,
2200+
"flowAlias" : "base step up",
2201+
"userSetupAllowed" : false
2202+
}
2203+
]
2204+
},
2205+
{
2206+
"id" : "00e79c8a-93b3-4c0d-857f-7bf5be19d0cb",
2207+
"alias" : "base step up",
2208+
"description" : "base step up flow",
2209+
"providerId" : "basic-flow",
2210+
"topLevel" : false,
2211+
"builtIn" : false,
2212+
"authenticationExecutions" : [
2213+
{
2214+
"authenticatorFlow" : true,
2215+
"requirement" : "CONDITIONAL",
2216+
"priority" : 2,
2217+
"autheticatorFlow" : true,
2218+
"flowAlias" : "step up level 1",
2219+
"userSetupAllowed" : false
2220+
},
2221+
{
2222+
"authenticatorFlow" : true,
2223+
"requirement" : "CONDITIONAL",
2224+
"priority" : 3,
2225+
"autheticatorFlow" : true,
2226+
"flowAlias" : "step up level 2",
2227+
"userSetupAllowed" : false
2228+
}
2229+
]
2230+
},
2231+
{
2232+
"id" : "32ec29d9-dd12-45ce-bdbc-3e597aca4b51",
2233+
"alias" : "step up level 1",
2234+
"description" : "loa 1 with username and password",
2235+
"providerId" : "basic-flow",
2236+
"topLevel" : false,
2237+
"builtIn" : false,
2238+
"authenticationExecutions" : [
2239+
{
2240+
"authenticatorConfig" : "loa level 1",
2241+
"authenticator" : "conditional-level-of-authentication",
2242+
"authenticatorFlow" : false,
2243+
"requirement" : "REQUIRED",
2244+
"priority" : 0,
2245+
"autheticatorFlow" : false,
2246+
"userSetupAllowed" : false
2247+
},
2248+
{
2249+
"authenticator" : "auth-username-password-form",
2250+
"authenticatorFlow" : false,
2251+
"requirement" : "REQUIRED",
2252+
"priority" : 1,
2253+
"autheticatorFlow" : false,
2254+
"userSetupAllowed" : false
2255+
}
2256+
]
2257+
},
2258+
{
2259+
"id" : "b8c46bfb-cf9e-414a-a773-b17e0fdaa475",
2260+
"alias" : "step up level 2",
2261+
"description" : "loa 2 with totp",
2262+
"providerId" : "basic-flow",
2263+
"topLevel" : false,
2264+
"builtIn" : false,
2265+
"authenticationExecutions" : [
2266+
{
2267+
"authenticatorConfig" : "loa level 2",
2268+
"authenticator" : "conditional-level-of-authentication",
2269+
"authenticatorFlow" : false,
2270+
"requirement" : "REQUIRED",
2271+
"priority" : 0,
2272+
"autheticatorFlow" : false,
2273+
"userSetupAllowed" : false
2274+
},
2275+
{
2276+
"authenticator" : "auth-otp-form",
2277+
"authenticatorFlow" : false,
2278+
"requirement" : "REQUIRED",
2279+
"priority" : 1,
2280+
"autheticatorFlow" : false,
2281+
"userSetupAllowed" : false
2282+
}
2283+
]
2284+
},
21602285
{
21612286
"id": "8964f931-b866-4a05-ab1c-89331a566887",
21622287
"alias": "Account verification options",
@@ -2683,6 +2808,22 @@
26832808
"config": {
26842809
"update.profile.on.first.login": "missing"
26852810
}
2811+
},
2812+
{
2813+
"id" : "5b7b9811-6a2d-47ba-8722-7a4a5cb67cc3",
2814+
"alias" : "loa level 2",
2815+
"config" : {
2816+
"loa-condition-level" : "2",
2817+
"loa-max-age" : "36000"
2818+
}
2819+
},
2820+
{
2821+
"id" : "fc6ac583-5601-4c97-a57b-3b044dc4007f",
2822+
"alias" : "loa level 1",
2823+
"config" : {
2824+
"loa-condition-level" : "1",
2825+
"loa-max-age" : "36000"
2826+
}
26862827
}
26872828
],
26882829
"requiredActions": [
@@ -2779,7 +2920,8 @@
27792920
"oauth2DeviceCodeLifespan": "600",
27802921
"parRequestUriLifespan": "60",
27812922
"clientSessionMaxLifespan": "0",
2782-
"organizationsEnabled": "false"
2923+
"organizationsEnabled": "false",
2924+
"acr.loa.map" : "{\"regular\":\"1\",\"advanced\":\"2\"}"
27832925
},
27842926
"keycloakVersion": "25.0.0",
27852927
"userManagedAccessAllowed": false,

0 commit comments

Comments
 (0)