forked from lda/telodendria
Fix error setting up UIA flows.
This commit is contained in:
parent
866343071a
commit
2bbe13aaf0
1 changed files with 4 additions and 1 deletions
|
@ -50,6 +50,7 @@ ROUTE_IMPL(RouteUiaFallback, path, argp)
|
|||
int uiaResult;
|
||||
Config *config;
|
||||
Array *flows;
|
||||
Array *flow;
|
||||
|
||||
config = ConfigLock(args->matrixArgs->db);
|
||||
if (!config)
|
||||
|
@ -67,8 +68,10 @@ ROUTE_IMPL(RouteUiaFallback, path, argp)
|
|||
}
|
||||
|
||||
Log(LOG_DEBUG, "Building flows...");
|
||||
flow = ArrayCreate();
|
||||
flows = ArrayCreate();
|
||||
ArrayAdd(flows, UiaStageBuild(authType, NULL));
|
||||
ArrayAdd(flow, UiaStageBuild(authType, NULL));
|
||||
ArrayAdd(flows, flow);
|
||||
Log(LOG_DEBUG, "about to UiaComplete()...");
|
||||
uiaResult = UiaComplete(flows, args->context,
|
||||
args->matrixArgs->db, request, &response, config);
|
||||
|
|
Loading…
Reference in a new issue