mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 03:26:06 +01:00
Bump oauth2-oidc-sdk to 8.29.1 (#2617)
This commit is contained in:
@@ -59,7 +59,7 @@ libraryDependencies ++= Seq(
|
|||||||
"org.cache2k" % "cache2k-all" % "1.2.4.Final",
|
"org.cache2k" % "cache2k-all" % "1.2.4.Final",
|
||||||
"net.coobird" % "thumbnailator" % "0.4.12",
|
"net.coobird" % "thumbnailator" % "0.4.12",
|
||||||
"com.github.zafarkhaja" % "java-semver" % "0.9.0",
|
"com.github.zafarkhaja" % "java-semver" % "0.9.0",
|
||||||
"com.nimbusds" % "oauth2-oidc-sdk" % "5.64.4",
|
"com.nimbusds" % "oauth2-oidc-sdk" % "8.29.1",
|
||||||
"org.eclipse.jetty" % "jetty-webapp" % JettyVersion % "provided",
|
"org.eclipse.jetty" % "jetty-webapp" % JettyVersion % "provided",
|
||||||
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided",
|
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided",
|
||||||
"junit" % "junit" % "4.13" % "test",
|
"junit" % "junit" % "4.13" % "test",
|
||||||
|
|||||||
@@ -101,7 +101,10 @@ trait OpenIDConnectService {
|
|||||||
redirectURI: URI
|
redirectURI: URI
|
||||||
): Option[AuthenticationSuccessResponse] =
|
): Option[AuthenticationSuccessResponse] =
|
||||||
try {
|
try {
|
||||||
AuthenticationResponseParser.parse(redirectURI, params.asJava) match {
|
AuthenticationResponseParser.parse(
|
||||||
|
redirectURI,
|
||||||
|
params.map { case (key, value) => (key, List(value).asJava) }.asJava
|
||||||
|
) match {
|
||||||
case response: AuthenticationSuccessResponse =>
|
case response: AuthenticationSuccessResponse =>
|
||||||
if (response.getState == state) {
|
if (response.getState == state) {
|
||||||
Some(response)
|
Some(response)
|
||||||
|
|||||||
Reference in New Issue
Block a user