aws / aws/amazon-redshift-python-driver
Is`OktaCredentialsProvider.handle_saml_assertion` compatible with SageMaker instances?
- 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
...
The page has timed out
If this page does not reload automatically, please refresh your browser.
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