将 IAP 用作身份验证代理
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍如何将 Identity-Aware Proxy (IAP) 配置为身份验证代理。
当您配置 IAP 政策以允许所有用户访问应用时,IAP 不会检查用户身份验证凭据。如果要将 IAP 用作身份验证代理,并让用户在访问资源时进行身份验证,则必须将 IAP 模式设置为 Force_Login
。
如需将 IAP 配置为身份验证代理,请完成以下步骤:
按照 IAP 方法指南 文档,在资源上启用 IAP。
前往 IAP 页面。
转到 Identity-Aware Proxy
选择资源,然后点击添加成员。
将 IAP-secured Web App User 角色添加到 allUsers
,使资源可公开访问。
如需让 IAP 对用户进行身份验证,请确保向应用发出的请求采用以下格式:
YOUR_APP_URL?gcp-iap-mode=FORCE_LOGIN
这会对所有传入请求强制执行身份验证,并在身份验证成功后将请求重定向到 YOUR_APP_URL
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-04。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]