Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Managed Identity Support #95

Open
ScratZa opened this issue Sep 5, 2022 · 1 comment
Open

Azure Managed Identity Support #95

ScratZa opened this issue Sep 5, 2022 · 1 comment

Comments

@ScratZa
Copy link

ScratZa commented Sep 5, 2022

Would be great to have an option to support Managed Identity

Is this something on the roadmap? if not happy to try my hand and contribute towards this.

@OliverKleinBST
Copy link

Actually it is supported, e.g.

import os
os.environ['KQLMAGIC_CONFIGURATION'] = (
"extras_require=jupyter-basic,msi_sso,plotly;"
"warn_missing_dependencies=False;"
"notebook_app=jupyterlab;"
"try_msi={'client_id':'...' };"
)
%reload_ext Kqlmagic

There seems however to be a problem in Kqlmagic/my_aad_helper_msal.py.
A hack to fix that could look like
sed -i 's/time.localtime(token.get(OAuth2TokenFields.EXPIRES_ON))/time.localtime(int(token.get(OAuth2TokenFields.EXPIRES_ON)))/' my_aad_helper_msal.py
sed -i 's/time.localtime(token.get(OAuth2TokenFields.NOT_BEFORE))/time.localtime(int(token.get(OAuth2TokenFields.NOT_BEFORE)))/' my_aad_helper_msal.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants