Merge pull request #1621 from Helvio88/patch-1

Add state to oidc uri
This commit is contained in:
eikek
2022-07-05 20:21:37 +02:00
committed by GitHub

View File

@ -49,6 +49,7 @@ object CodeFlowRoutes {
CodeFlowConfig.resumeUri(req, cfg, config).asString CodeFlowConfig.resumeUri(req, cfg, config).asString
) )
.withQuery("response_type", "code") .withQuery("response_type", "code")
.withQuery("state", cfg.clientId)
logger.debug( logger.debug(
s"Redirecting to OAuth/OIDC provider ${cfg.providerId.id}: ${uri.asString}" s"Redirecting to OAuth/OIDC provider ${cfg.providerId.id}: ${uri.asString}"
) *> ) *>