Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在SpringSecurity5.x.x应用程序中为OpenIDConnect客户端配置JWE密钥?_Spring_Spring Security_Openid Connect_Jose - Fatal编程技术网

如何在SpringSecurity5.x.x应用程序中为OpenIDConnect客户端配置JWE密钥?

如何在SpringSecurity5.x.x应用程序中为OpenIDConnect客户端配置JWE密钥?,spring,spring-security,openid-connect,jose,Spring,Spring Security,Openid Connect,Jose,是否可以为spring boot 2.0应用程序配置或自动连接JWE密钥选择器(使用spring security 5.x.x),以便能够解密从OpenId connect提供程序收到的id JWS密钥可以由spring安全oauth2定义。但是我没有找到为所使用的指定JWEKeySelector的方法 提前谢谢 依赖项: buildscript { ext { springBootVersion = '2.0.0.RELEASE' } repositor

是否可以为spring boot 2.0应用程序配置或自动连接JWE密钥选择器(使用spring security 5.x.x),以便能够解密从OpenId connect提供程序收到的id

JWS密钥可以由spring安全oauth2定义。但是我没有找到为所使用的指定JWEKeySelector的方法

提前谢谢

依赖项:

buildscript {
    ext {
        springBootVersion = '2.0.0.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

ext['thymeleaf.version'] = '3.0.9.RELEASE'

dependencies {

    compile 'org.springframework.security:spring-security-config'
    compile 'org.springframework.security:spring-security-oauth2-client'
    compile 'org.springframework.security:spring-security-oauth2-jose'

    compile 'org.springframework.boot:spring-boot-starter-web'
    compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
    compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
    compile 'io.projectreactor.ipc:reactor-netty'
    compile 'org.springframework:spring-webflux'

    compile 'org.webjars:jquery:3.3.1-1'
    compile 'org.webjars:bootstrap:4.0.0-1'
    compile 'org.webjars:webjars-locator:0.32'

    testCompile 'org.springframework.security:spring-security-test'
    testCompile 'org.springframework.boot:spring-boot-starter-test'
}

JWE支持似乎仍在路线图上:但是,有人知道解决方法吗?