admin管理员组文章数量:1122832
I have deployed an application on the Cloud Run service. I have configured IAP and Identity Plateform for authentication to this app using SAML.
I want to automate authentication to this app for a specific user. I've created a Python script to reproduce the authentication workflow based on requests made by the Edge browser.
I've managed to automate authentication right up to the stage where I retrieve the SAML response generated by my IDP.
However, to send this SAML response, the IAP service relies on Firebase. It uses the Javascript method fireauth.oauthhelper.widget.initialize() to submit the SAML response.
<!DOCTYPE html>
<html>
<head>
<meta name=viewport content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="experiments.js"></script>
<script type="text/javascript" src="handler.js"></script>
<script type="text/javascript" nonce="firebase-auth-helper">
var POST_BODY = "SAMLResponse=SAMLRESPONSE_VALUE";
fireauth.oauthhelper.widget.initialize();
</script>
</head>
<body></body>
</html>
How do I submit this SAML response to Firebase via a Python script or API call?
本文标签: pythonAutomate SAML authentification with IAP and Cloud RunStack Overflow
版权声明:本文标题:python - Automate SAML authentification with IAP and Cloud Run - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736311489a1934752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论