0
点赞
收藏
分享

微信扫一扫

使用matplotlib绘制折线条形复合图

雅典娜的棒槌 2024-06-01 阅读 8
在Oauth服务中配置
@Override
protected void configure(HttpSecurity http) throws Exception {
    http.csrf().disable().formLogin().permitAll().and()//主要配置好.formLogin()
            .authorizeRequests()
            .requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()
            .antMatchers("/rsa/publicKey").permitAll()
            .anyRequest().authenticated();
 } 

在Gateway中的网关的主要配置,为了在header 中添加相关的数据请求---主要解决的网关跳转的登录页是内存ip地址页和单机的走网关无法返回授权码和强制路径server.servlet.context-path:的问题解决

- id: oauth2-login

uri: lb://oauth2

predicates:

- Path=/login

filters:

- PreserveHostHeader

- id: oauth2-token

uri: lb://oauth2

predicates:

- Path=/oauth/token

filters:

- PreserveHostHeader

- id: oauth2-authorize

uri: lb://oauth2

predicates:

- Path=/oauth/authorize

filters:

- PreserveHostHeader

实现回调函数或者直接url指向:

举报

相关推荐

0 条评论