• 请不要在回答技术问题时复制粘贴 AI 生成的内容
rqxiao
V2EX  ›  程序员

第一次学权限框架 如 oauth2 这种有什么推荐的资料和方法吗

  •  
  •   rqxiao · Jan 10, 2020 · 2296 views
    This topic created in 2343 days ago, the information mentioned may be changed or developed.

    oauth2 大致流程有了解

    但是比如现在想通过实战 搭建一个 spring-security-oauth 完整流程 感觉有点无从下手

    3 replies    2020-01-14 16:27:10 +08:00
    hantsy
        1
    hantsy  
       Jan 11, 2020
    OAuth2 全面的资料,https://oauth.net/

    spring-security-oauth 已经 EOL 了。

    核心功能都在 Spring Security 5 中重写了,除支持 OAuth2 外,增加了 OIDC,目前 client, resource server 已经完成,剩下 authentication-server 还没有移植。实际上 authentication-server 不是必须的,太多的开源和云 IDP 方案。比如,
    1. 开源的 Keycloak,
    2. 专业的 IDP,如 auth0.net, okta
    3. 符合 OAuth/OIDC 的 Social Login,如 Google , Github, Microsoft, Twitter, Facebook 等。
    hantsy
        2
    hantsy  
       Jan 11, 2020
    Spring Security 新旧版本特性比较,原来的 spring-security-oauth, spring-cloud-security, spring-boot-starter-oauth2 等的功能都已经 Spring Security 5.x 中重写:

    https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Features-Matrix
    ffLoveJava
        3
    ffLoveJava  
       Jan 14, 2020
    @hantsy 请详细描述下好吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   868 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    ♥ Do have faith in what you're doing.