V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
OysterQAQ
V2EX  ›  问与答

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

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