aws / aws/amazon-redshift-python-driver

Is`OktaCredentialsProvider.handle_saml_assertion` compatible with SageMaker instances?

Đang mở
#266 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
220
Fork
86
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.




Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu trong redshift_connector/plugin/okta_credentials_provider.py tại handle_saml_assertion, đặc biệt là dòng 158, và so sánh cách xử lý response giữa một máy cục bộ và SageMaker. Xác nhận liệu response từ SageMaker có thể được xử lý tương thích hay không, đồng thời ghi lại một bài kiểm thử có thể tái hiện hoặc hành vi dự kiến cho bản sửa lỗi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, python
Lĩnh vực
authentication, databases
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.