Fixing http redirect status codes

This commit is contained in:
eikek
2021-09-06 11:40:47 +02:00
parent 468ba90158
commit 28fdeb5a93
2 changed files with 9 additions and 9 deletions

View File

@ -54,7 +54,7 @@ object CodeFlowRoutes {
logger.debug(
s"Redirecting to OAuth/OIDC provider ${cfg.providerId.id}: ${uri.asString}"
) *>
SeeOther().map(_.withHeaders(Location(Uri.unsafeFromString(uri.asString))))
Found(Location(Uri.unsafeFromString(uri.asString)))
case None =>
logger.debug(s"No OAuth/OIDC provider found with id '$id'") *>
NotFound()