如何使用Spring Boot中的Link实现自动身份验证?

发布于 2025-02-11 19:02:41 字数 238 浏览 0 评论 0原文

我正在尝试使用Spring Boot中的一些链接来实现登录。 例如,URL将为http:// localhost:8080/superlogin?token = 323XS232SDFDDGW3 每当用户在浏览器中打开此URL时,都需要解密令牌并获取用户ID,然后将自动login作为该用户。此后,这将需要正常登录。 我制作了正常的登录页面,它可以正常工作,但是我不确定此链接登录。我确定我需要在安全配置中做一些事情。 谁能建议我?

I am trying to implement login using some link in spring boot.
for example, the url will be http://localhost:8080/superlogin?token=323xs232sdfddgw3
whenever user open this url in browser, will need to decrypt the token and get user id, then make auto-login as that user. This will need to be same with normal login after that.
I made normal login page and it works, but I am not sure for this link login. I am sure I need to do something in security configuration.
Can anyone advise me kindly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文