docfix/added comments

This commit is contained in:
hongwei 2026-01-21 13:39:45 +01:00
parent 31624464b9
commit 48afd126d5

View File

@ -547,7 +547,7 @@ object DirectLogin extends RestHelper with MdcLoggable {
// Use params from CallContext (http4s path)
validatorFutureWithParams("protectedResource", httpMethod, directLoginParamsFromCC)
} else {
// Fall back to S.request (Lift path)
// Fall back to S.request (Lift path), e.g. we still use Lift to generate the token and secret, so we need to maintain backward compatibility here.
validatorFuture("protectedResource", httpMethod)
}
_ <- Future { if (httpCode == 400 || httpCode == 401) Empty else Full("ok") } map { x => fullBoxOrException(x ?~! message) }