aws / aws/amazon-redshift-python-driver

Is`OktaCredentialsProvider.handle_saml_assertion` compatible with SageMaker instances?

未关闭
#266 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
220
派生
86
PR 合并指标
30 天内没有已合并 PR

描述

I'm encountering an issue when using `redshift_connector` with Okta-based authentication inside my organisation's SageMaker environment.

In `OktaCredentialsProvider.handle_saml_assertion` I receive an error [okta_credentials_provider.py#L158](https://github.com/aws/amazon-redshift-python-driver/blob/fd81061c4dfee9ed3001be039f6b1826d8366302/redshift_connector/plugin/okta_credentials_provider.py#L158) despite receiving a 200 OK and a response of length > 2k.

Upon investigating the logs it seems to be down to a browser or Javascript issue? I've tried on both SageMaker Studio Code Editor and SageMaker Notebook instances and get the same issue.

It's also strange that `OktaCredentialsProvider.okta_authentication` works perfectly and I'm able to retrieve the `okta_session_token`, but the later step fails.

The same identical code works perfectly on my local machine.

I've attached the relevant part of the response below:

```
...



Javascript is required


Javascript is disabled on your browser. Please enable Javascript and refresh this page.


Refresh






Your OneDrive version is not supported


Upgrade now by installing the OneDrive for Business Next Generation Sync Client to login to Okta



Learn how to upgrade



Cookies are required


Cookies are disabled on your browser. Please enable Cookies and refresh this page.



Refresh




...







The page has timed out


If this page does not reload automatically, please refresh your browser.




贡献指南

打开贡献指南

调研方向

Start in redshift_connector/plugin/okta_credentials_provider.py at handle_saml_assertion, especially line 158, and compare the response handling between a local machine and SageMaker. Confirm whether the SageMaker response can be handled compatibly and document a reproducible test or expected behavior for the fix.

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, python
领域
authentication, databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。