Azure / Azure/azure-sdk-for-python

Azure ML - AIO implementation of OBO credential uses an undefined class attribute causing token acquiral to fail

Open
#40,076 4 comments 0 reactions 2 assignees Claimed by @achauhan-scc View on GitHub
customer-reported feature-request Machine Learning needs-team-attention Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

- **Package Name**: azure-ai-ml
- **Package Version**: 1.26.0
- **Operating System**: Ubuntu
- **Python Version**: python 3.11

**Describe the bug**
[_identity_config is not defined anywhere in the parent/child classes](https://github.com/Azure/azure-sdk-for-python/blob/1f7312f040269e1d0a31d463f93b0251c80cd4c2/sdk/ml/azure-ai-ml/azure/ai/ml/identity/_aio/_internal/managed_identity_client.py#L31)

**To Reproduce**
Steps to reproduce the behavior:
1. Instantiate the `AzureMLOnBehalfOfCredential` class
2. Attempt to retrieve a token as part of an aio pipeline
3. Raises `AttributeError: object 'AsyncManagedIdentityClient' has no attribute '_identity_config'

**Expected behavior**
Acquiring an OBO token via an aio event loop is possible. As it stands the OBO AIO credential class cannot be used to perform any read/write operations that leverage an fsspec implementation (since this uses aio).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.