Skip to content

Commit

Permalink
another missing
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengfeiwang committed Apr 23, 2024
1 parent bc394a4 commit 54be841
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/promptflow-devkit/promptflow/_sdk/_service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,11 @@ def get_created_by_info_with_cache():
try:
# The total time of collecting info is about 3s.
import jwt
from azure.identity import DefaultAzureCredential
from azure.identity import AzureCliCredential

from promptflow.azure._utils.general import get_arm_token

default_credential = DefaultAzureCredential()

token = get_arm_token(credential=default_credential)
token = get_arm_token(credential=AzureCliCredential())
decoded_token = jwt.decode(token, options={"verify_signature": False})
created_by_for_local_to_cloud_trace.update(
{
Expand Down

0 comments on commit 54be841

Please sign in to comment.