aws / aws/amazon-redshift-python-driver

Is`OktaCredentialsProvider.handle_saml_assertion` compatible with SageMaker instances?

Aberta
#266 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
220
Forks
86
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.




Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece em redshift_connector/plugin/okta_credentials_provider.py, em handle_saml_assertion, especialmente na linha 158, e compare o tratamento da resposta entre uma máquina local e o SageMaker. Confirme se a resposta do SageMaker pode ser tratada de forma compatível e documente um teste reproduzível ou o comportamento esperado para a correção.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
aws, python
Domínio
authentication, databases
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.