gpt4 book ai didi

html - html5网站的认证

转载 作者:行者123 更新时间:2023-11-28 00:16:49 26 4
gpt4 key购买 nike

我为应用程序开发了 HTML5 页面,我将其打包为 war 文件并部署在 WAS CE 上。

现在我想对应用程序实现身份验证和授权,以便只有授权的用户才能访问该网站。

我怎样才能实现*

authentication & authorization of the html5 page resource

*就像我们使用 JAAS 或 Spring Security 保护 Java Web 应用程序一样......

问候谢..

最佳答案

HTML5/JavaScript 完全是客户端。此代码无法验证客户端。 JAAS 或 Spring Security 的 session 处理程序可以验证客户端是否已通过身份验证。然后在服务器端,您可以根据 session 处理程序存储的身份验证凭据拒绝 html5 客户端访问资源。

关于html - html5网站的认证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11737524/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com