aws / aws/amazon-redshift-python-driver
Is`OktaCredentialsProvider.handle_saml_assertion` compatible with SageMaker instances?
- 主要言語
- 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
...
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