Skip to main content
Answer

Notebook 1_Authentication: Cannot authenticate to Azure

  • March 16, 2023
  • 3 replies
  • 45 views

joseLB
Active
Forum|alt.badge.img

Hi: I’m doing DATA ENGINEER BASICS - INTEGRATE course.

Trying to execute Notebook 1, I cannot pass through the cell getting the authentication with Azure, namely:

creds = authenticate_azure()

Any help?

P.S. I’m using Google Colab

 

 

Best answer by Gaetan Helness

Hi @joseLB 
 

When using Google Collab, you cannot sign in interactively via a browser and use the authenticate with interactive login and token refresh flow, you need to use another authentication method.
Just scroll down a bit more to the section “Using Device Code” and run the code there. 
It will provide you an url and a code to connect in your browser. 

Hope that helps, let me know if any questions

3 replies

Gaetan  Helness
MVP
Forum|alt.badge.img+1

Hi @joseLB 
 

When using Google Collab, you cannot sign in interactively via a browser and use the authenticate with interactive login and token refresh flow, you need to use another authentication method.
Just scroll down a bit more to the section “Using Device Code” and run the code there. 
It will provide you an url and a code to connect in your browser. 

Hope that helps, let me know if any questions


Gaetan  Helness
MVP
Forum|alt.badge.img+1

Once successfully logged in, you can use 

client.iam.token.inspect()

to verify your capabilities. 


joseLB
Active
Forum|alt.badge.img
  • Author
  • Active
  • March 16, 2023

It worked like a charm :-)

Thank you Greta / JLB.