bitcoin
bitcoin

$83417.370145 USD

-0.28%

ethereum
ethereum

$2504.252015 USD

-0.89%

tether
tether

$0.998878 USD

0.01%

bnb
bnb

$741.846592 USD

-0.31%

xrp
xrp

$1.368996 USD

-0.30%

usd-coin
usd-coin

$0.999809 USD

-0.01%

solana
solana

$107.306571 USD

-0.74%

tron
tron

$0.331208 USD

0.54%

zcash
zcash

$1253.021393 USD

3.27%

hyperliquid
hyperliquid

$81.900125 USD

-1.27%

dogecoin
dogecoin

$0.084656 USD

-0.06%

monero
monero

$548.963026 USD

1.80%

chainlink
chainlink

$12.891974 USD

-1.09%

cardano
cardano

$0.235303 USD

-1.48%

unus-sed-leo
unus-sed-leo

$9.020010 USD

1.36%

Cryptocurrency News Video

how to get v2 type token using msal python

Nov 06, 2024 at 02:10 am Emrah KAYA

Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram: https://www.instagram.com/ky.emrah Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!how to get v2 type token using msal python I am trying to get a v2 type token using the msal library for python my code is as in below global_app = msal.ClientApplication( os.getenv('CLIENT_ID'), authority=os.getenv('AUTHORITY'), # For Entra ID or External ID oidc_authority=os.getenv('OIDC_AUTHORITY'), # For External ID with custom domain client_credential=os.getenv('CLIENT_SECRET') or None, # Treat empty string as None token_cache=global_token_cache, # Let this app (re)use an existing token cache. # If absent, ClientApplication will create its own empty token cache ) result = global_app.acquire_token_by_username_password( os.getenv("USERNAME"), password, scopes=scopes) global_app = msal.ClientApplication( os.getenv('CLIENT_ID'), authority=os.getenv('AUTHORITY'), # For Entra ID or External ID oidc_authority=os.getenv('OIDC_AUTHORITY'), # For External ID with custom domain client_credential=os.getenv('CLIENT_SECRET') or None, # Treat empty string as None token_cache=global_token_cache, # Let this app (re)use an existing token cache. # If absent, ClientApplication will create its own empty token cache ) result = global_app.acquire_token_by_username_password( os.getenv("USERNAME"), password, scopes=scopes) Additionally i have tried to set and unset the scopes as User.Read. I have also set the accesstokentype in the Azure manifests to v2. However when i run the above, i still get the token with issuer as https://sts.... which is different from my issue which is of the type https://login.microsoftonline.com/{TENANT} https://login.microsoftonline.com/{TENANT} I need assistance in getting the correct v2 token back Tags: azure,azure-ad-msal,msalSource of the question: https://stackoverflow.com/questions/79024377 Question and source license information: https://meta.stackexchange.com/help/licensing https://stackoverflow.com/
Video source:Youtube

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Other videos published on Oct 15, 2026