Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAML认证BUG,spring官方的例子spring-boot-security-saml-sample认证不成功 #36

Closed
ghost opened this issue Nov 13, 2020 · 13 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Nov 13, 2020

如何复现

  1. https://github.com/vdenotaris/spring-boot-security-saml-sample 这是spring官方的例子,可以自己跑跑试试
  2. 自己解析的我用的是saml-client,非常简单,你们也可以写个demo试试

还有smal配置,加密的配置,你们根本没有使用,所以证书是必填的选项,但是你们表单没有设成必填,所以这也是个坑

@shimingxy
Copy link
Collaborator

当前对接阿里云和腾讯云都是正常的,你说的问题我们详细问题所在,在下一个版本会有结果

@ghost
Copy link
Author

ghost commented Nov 13, 2020

2020-11-13_18-13
我自己写的解析,这是你们服务器报的错误
size
如果服务器不报错误,返回的内容依然不正确,我这边报的错误

@ghost
Copy link
Author

ghost commented Nov 13, 2020

https://gitee.com/david0624/demo-simple-saml
这是我自己写的demo,非常简单,samlcontroller,一个是request,一个是response,而且证书什么的,resouces里面已经提供好了,很方便你们测试,辛苦了,开源不易

@ghost
Copy link
Author

ghost commented Nov 18, 2020

不知道什么时候能修复,我司正好用到这块,现在再集成

@shimingxy
Copy link
Collaborator

感谢你对我们的关注,该问题已经在下个版本的计划中了,最晚预计12月底完成修复并和v2.4.0GA一同发布

@shimingxy shimingxy self-assigned this Nov 19, 2020
@shimingxy shimingxy added the bug label Nov 19, 2020
@shimingxy
Copy link
Collaborator

如果很急的话建议可以使用其他协议

@shimingxy
Copy link
Collaborator

问题详细描述:
先是依赖错误,noClassdefError,然后又是其它错误,然后我自己写的解析,请求可以到登陆页了,结果要么服务器报错,要么返回的报文不合法,总之就是不能用

@shimingxy shimingxy changed the title SAML基本不可用,spring官方的例子spring-boot-security-saml-sample先是依赖错误,noClassdefError,然后又是其它错误,然后我自己写的解析,请求可以到登陆页了,结果要么服务器报错,要么返回的报文不合法,总之就是不能用 SAML认证BUG,spring官方的例子spring-boot-security-saml-sample认证不成功 Nov 19, 2020
@shimingxy
Copy link
Collaborator

修复

@ghost
Copy link
Author

ghost commented Nov 27, 2020

你们用我写的demo测试了吗

@ghost
Copy link
Author

ghost commented Nov 27, 2020

还有bug的关闭,我觉得客户验证以后,在关闭也不持,我这里现在直接500 internel error,而且后台没有任何错误,我觉得这一点也不科学

@shimingxy
Copy link
Collaborator

shimingxy commented Nov 28, 2020 via email

@ghost
Copy link
Author

ghost commented Nov 29, 2020

我给了两个例子,一个是spring security saml的,一个是saml client的,我们没用spring security,所一用的saml client,还是不行,这个我也给了demo的

@shimingxy
Copy link
Collaborator

shimingxy commented Nov 30, 2020 via email

@shimingxy shimingxy pinned this issue Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant