代码之家  ›  专栏  ›  技术社区  ›  Tymur Berezhnoi

无OAuth的Spring security JWT

  •  2
  • Tymur Berezhnoi  · 技术社区  · 6 年前

    最近我开始学习如何用oauth2.0+jwt配置springboot,我有一个问题:是否可以使用springbootsecurity+jwt来避免oauth2.0?

    1 回复  |  直到 6 年前
        1
  •  4
  •   git-flo    6 年前

    是的,可以使用 JWT 无需使用标准化 OAuth 2.0 流动。 Here AUTH0 . 例如,您可以使用此依赖关系:

    <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-jwt -->
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-jwt</artifactId>
        <version>1.0.9.RELEASE</version>
    </dependency>