通过快捷指令GET请求方法登录东华理工校园网

​​​​​​https://www.icloud.com/shortcuts/b4f7c3a421274af783bb177ccc18b687

将上面连接复制到Safari打开

将快捷指令导入快捷指令app后

按照提示一一填写账号 密码 运营商(如图)

关于隐私:http://t.csdn.cn/U9peN

de3f959b9c594bc39d7b0c481b0d0bfb.png

 a37bdc79a18544ef9775b1b20a428b56.png

 186265690fec4299855e6bdfdba95df5.png

06d7bb305e474546aca059c9bb29436a.png 

 填写完毕后将Wi-Fi 打开自动加入 关闭自动登录

06715f807af74ca9bddaf764aaa24130.png

 之后打开快捷指令

创建个人自动化

8dc2cfc30f704a9a926e19d65914ca3d.png

b75500fd915546b9ac43798f8e153272.png 

d73cde9a03f849398c4e0999eb4a7d96.png 

 点击选取 (应该会有很多网络找到ECUT_STUD即可)

f0e1112026c342c48fe924321308de63.png 

完成后点击下一步

9b29618137144b6bb51548b1190ec8a9.png

 添加操作 搜索快捷指令 运行快捷指令 运行登录校园网e367d0dabb764fbd809663bc6706b1a9.png

7f2341578f724e1eb6527dacc8a28d2c.png 

 820bdbd4bdfd48f39836f5f59d268690.png

 

 

快捷指令首次运行时应始终允许登录校园网将本机IP发送到学校服务器172.21.255.10593ce0931f9354a01a79b2c15a76af43a.png

 

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Spring Security 默认情况下只支持 POST 方法提交登录数据。要支持 GET 方法提交登录数据,需要通过配置 `org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter` 过滤器的 `setPostOnly(false)` 方法来实现。 具体实现步骤如下: 1. 创建一个继承自 `UsernamePasswordAuthenticationFilter` 的类,重写其 `attemptAuthentication` 方法。 ```java public class CustomUsernamePasswordAuthenticationFilter extends UsernamePasswordAuthenticationFilter { @Override public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException { if (!"POST".equals(request.getMethod()) && !"GET".equals(request.getMethod())) { throw new AuthenticationServiceException("Authentication method not supported: " + request.getMethod()); } // 处理登录请求 // ... } } ``` 2. 在 Spring Security 配置类中,将上述自定义的过滤器添加到过滤器链中,并设置 `setPostOnly(false)`。 ```java @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private CustomUserDetailsService userDetailsService; @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/login").permitAll() .anyRequest().authenticated() .and() .formLogin() .loginPage("/login") .loginProcessingUrl("/login") .and() .logout() .logoutUrl("/logout") .and() .csrf().disable() .addFilterAt(customUsernamePasswordAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class); } @Bean public CustomUsernamePasswordAuthenticationFilter customUsernamePasswordAuthenticationFilter() throws Exception { CustomUsernamePasswordAuthenticationFilter filter = new CustomUsernamePasswordAuthenticationFilter(); filter.setAuthenticationManager(authenticationManagerBean()); filter.setFilterProcessesUrl("/login"); filter.setPostOnly(false); return filter; } @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService); } } ``` 这样就可以通过 GET 请求提交登录数据了。但是,由于 GET 请求会将参数暴露在 URL 中,存在安全风险,建议还是使用 POST 请求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值