OysterQAQ
V2EX  ›  问与答

oauth2 规范中 access_token 必须要用公私钥来校验与生成吗

  •  
  •   OysterQAQ · Jan 4, 2021 · 1551 views
    This topic created in 2136 days ago, the information mentioned may be changed or developed.

    能不提供 JwkSetEndpoint 么,因为应用内现有的 jwt 用的 hmacSha 是不分公私的,现在想集成 oauth2,在 rfc 中没搜到 jwk,倒是 oauth0 中有要求,必须要用 rsa 之类的算法

    3 replies  •  2021-01-08 17:57:50 +08:00
    106npo
    106npo
    Jan 4, 2021 via Android
    1
    似乎没有找到 oauth2 access token 必须公私钥的规范
    OysterQAQ
    OysterQAQ
    OP
    Jan 4, 2021
    2
    @xmumiffy 应该是 oauth0 的标准有要求提供 /.well-known/jwks.json 这个端点,看网上的 aouth2 授权服务器都提供了这个就让我有点混乱
    DinnyXu
    DinnyXu
    Jan 8, 2021
    3
    公钥和私钥一般是看算法的,如果是 RS256 非对称加密,就需要配置证书+ 公钥
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2490 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:06 · PVG 20:06 · LAX 04:06 · JFK 07:06
    ♥ Do have faith in what you're doing.