首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏飞鸟的专栏

    Zuul实现多租户架构(二)

    ).permitAll() .anyRequest().authenticated() .and() .oauth2ResourceServer

    63720编辑于 2023-04-10
  • 来自专栏后端技术探险家

    API调用中的身份验证与授权实践

    "/public/**").permitAll() .anyRequest().authenticated() ) .oauth2ResourceServer (oauth2ResourceServer -> oauth2ResourceServer .jwt(jwt ->

    2.2K10编辑于 2024-11-15
  • 来自专栏路过君BLOG from CSDN

    spring security oauth2.x迁移到spring security5.x - 资源服务器

    项目可以继续使用spring security oauth 2.x版本或者升级到spring security 5.x 官方迁移指引 差异 废弃@EnableResourceServer注解,改为使用oauth2ResourceServer .hasAnyAuthority("SCOPE_scope") .anyRequest().permitAll() ).oauth2ResourceServer

    2.5K10编辑于 2021-12-07
  • 来自专栏程序员果果

    Spring Boot Security OAuth2 实现支持JWT令牌的授权服务器

    PostMapping("/api/hi") public String say(String name) { return "hi , " + name; } } OAuth2ResourceServer /** * 资源服务器 */ @Configuration @EnableResourceServer public class OAuth2ResourceServer extends ResourceServerConfigurerAdapter

    2.7K40发布于 2019-05-16
  • 来自专栏John Wong's Blog

    Spring Boot Security OAuth2 实现支持JWT令牌的授权服务器

    PostMapping("/api/hi") public String say(String name) { return "hi , " + name; } } OAuth2ResourceServer /** * 资源服务器 */ @Configuration @EnableResourceServer public class OAuth2ResourceServer extends ResourceServerConfigurerAdapter

    2.2K30编辑于 2021-12-23
  • 来自专栏Java技术进阶

    Spring Security 自定义资源服务器实践

    .mvcMatchers("/userinfo/**").hasAuthority("SCOPE_userinfo") .and() .oauth2ResourceServer .mvcMatchers("/userinfo/**").hasAuthority("SCOPE_userinfo")匹配/userinfo/**地址,允许访问范围是SCOPE_userinfo oauth2ResourceServer

    1K40编辑于 2022-11-18
  • 来自专栏飞鸟的专栏

    Spring Cloud Security配置JWT和OAuth2的集成实现单点登录-示例

    *").permitAll() .anyExchange().authenticated() .and() .oauth2ResourceServer 我们使用了oauth2ResourceServer().jwt()来配置JWT令牌的验证,然后添加了一个JwtAuthenticationFilter,该过滤器用于解析JWT令牌并将其转换为Spring

    4.3K71编辑于 2023-04-14
  • 来自专栏飞鸟的专栏

    Spring Cloud Security配置JWT和OAuth2的集成实现单点登录

    authenticated() .and() .oauth2Login() .and() .oauth2ResourceServer

    1.7K50编辑于 2023-04-14
  • SpringBoot微服务实战指南

    HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().authenticated().and().oauth2ResourceServer

    21110编辑于 2026-03-22
  • 从全栈开发到微服务架构:一次真实的Java工程师面试实录

    http.authorizeRequests() .antMatchers("/api/**").authenticated() .and() .oauth2ResourceServer http.authorizeRequests() .antMatchers("/api/**").authenticated() .and() .oauth2ResourceServer

    27510编辑于 2025-09-02
  • 来自专栏飞鸟的专栏

    集成Spring Cloud Security和Spring Cloud Gateway

    authenticated() .and() .oauth2Login() .and() .oauth2ResourceServer

    4.9K30编辑于 2023-04-14
  • 从Java全栈到云原生:一个程序员的实战面试记录

    http.authorizeRequests() .antMatchers("/api/**").authenticated() .and() .oauth2ResourceServer http.authorizeRequests() .antMatchers("/api/**").authenticated() .and() .oauth2ResourceServer

    27310编辑于 2025-09-09
  • 来自专栏程序猿DD

    Spring Boot 3.1 中如何整合Spring Security和Keycloak

    SYS_ADMIN") .anyRequest().authenticated() ) .oauth2ResourceServer

    2.1K40编辑于 2023-08-09
  • 来自专栏nginx

    SpringAI vs LangChain4j:Java生态大模型应用开发终极对决

    -> auth .requestMatchers("/api/ai/").hasRole("AI_USER") ) .oauth2ResourceServer

    1.4K11编辑于 2025-11-16
  • 来自专栏写字母的代码哥

    Spring Security OAuth2之resource_id配置与验证

    (假如同一个微服务资源部署多份,resourceId相同) @Configuration @EnableResourceServer public class OAuth2ResourceServer

    1.9K10发布于 2020-09-23
  • 来自专栏devops

    【架构实战】微服务安全架构:OAuth2.0 + JWT实战

    auth/**").permitAll().requestMatchers("/api/admin/**").hasRole("ADMIN").anyRequest().authenticated()).oauth2ResourceServer

    14710编辑于 2026-04-10
  • Java全栈开发工程师面试实录:从基础到微服务的深度解析

    http.authorizeRequests() .anyRequest().authenticated() .and() .oauth2ResourceServer - `oauth2ResourceServer().jwt()` 表示使用JWT进行身份验证。 ## 结束语 通过这次面试,可以看出李明在Java全栈开发方面有着丰富的经验和扎实的技术功底。

    24000编辑于 2025-12-04
  • 来自专栏开发经验

    Spring Cloud 搭建 Gateway 网关与统一登录模块:路径重写、登录拦截、跨域配置

    public/**").permitAll() .anyRequest().authenticated() .and() .oauth2ResourceServer

    1.8K10编辑于 2025-06-01
  • 来自专栏飞鸟的专栏

    Spring Cloud Security使用OAuth2授权服务器来保护API

    http.authorizeRequests() .antMatchers("/api/**").authenticated() .and().oauth2ResourceServer

    1.8K10编辑于 2023-04-13
  • 来自专栏码农小胖哥的码农生涯

    Spring Security的配置机制早就变了

    则将生成默认登录页面 oauth2Login() 根据外部OAuth 2.0或OpenID Connect 1.0提供程序配置身份验证 oauth2Client() OAuth2.0 客户端相关的配置 oauth2ResourceServer

    1.6K10编辑于 2022-05-22
领券