【问题标题】:How to validate bearer access token in spring boot using jwt public key如何使用 jwt 公钥在 Spring Boot 中验证承载访问令牌
【发布时间】:2020-01-18 16:36:06
【问题描述】:

我有使用客户端 ID 和密码从 websec 生成的访问令牌。

我的项目 app.properties 有 jwt 公钥。

我正在开发 rest api ,调用 Rest api 将提供我想使用 jwt 公钥验证的 Bear 令牌(生成一个)。

但是 spring security 在内部使用内存令牌验证器并返回无效令牌。

那么我如何使用 jwt 公钥来验证承载令牌。

或者在这里我缺乏一些理解。

【问题讨论】:

标签: spring spring-boot spring-security spring-security-oauth2 spring-security-rest


【解决方案1】:

看这里你会清楚地知道如何使用 Spring Security 验证令牌。 https://www.devglan.com/spring-security/spring-boot-jwt-auth

【讨论】:

    猜你喜欢
    • 2016-08-21
    • 1970-01-01
    • 2017-09-13
    • 2022-01-14
    • 1970-01-01
    • 2020-07-13
    • 2018-01-06
    • 2020-04-23
    • 2022-10-15
    相关资源
    最近更新 更多