【问题标题】:What are the endpoints oauth/check_token/ and oauth/token_key/?端点 oauth/check_token/ 和 oauth/token_key/ 是什么?
【发布时间】:2018-09-08 20:14:57
【问题描述】:

以下命令激活以下结束:

@Override
public void configure(final AuthorizationServerSecurityConfigurer oauthServer) {
    oauthServer.tokenKeyAccess("permitAll()").checkTokenAccess("isAuthenticated()");
}

现在,我的问题是,这两个端点的用途是什么?它们在什么地方或以什么方式使用?

【问题讨论】:

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


    【解决方案1】:

    看看OAuth 2 Developers Guide

    tokenKeyAccess() 为端点配置访问权限,公开用于签署 JWT 令牌的公钥。 checkTokenAccess() 为用于解码访问令牌的端点配置访问权限。

    【讨论】:

      猜你喜欢
      • 2020-06-30
      • 2016-08-17
      • 2018-09-07
      • 2020-09-05
      • 2019-12-01
      • 2011-08-27
      • 2019-09-19
      • 2018-05-04
      • 2014-10-26
      相关资源
      最近更新 更多