Giter Site home page Giter Site logo

Comments (3)

azure-client-tools-bot-prd avatar azure-client-tools-bot-prd commented on July 2, 2024

Hi @jiasli
Find similar issue #19506.

Issue title [Enhancement Proposal] Add config option to disable token cache encryption
Create time 2021-09-09
Comment number 4

Possible solution:
As mentioned in that issue, instead of using allow_unencrypted or fallback_to_plaintext and let Azure CLI try its best to encrypt, we should introduce a definitive option like plaintext to force unencrypted token cache, so that complex platform-dependent problems can be bypassed. This has been implemented in #20432 as core.encrypt_token_cache. Additionally, if you want to opt-in to unprotected token cache behavior, you can use the FilePersistence in MSAL EX Python.


Please confirm if this resolves your issue.

from azure-cli.

yonzhan avatar yonzhan commented on July 2, 2024

Thank you for opening this issue, we will look into it.

from azure-cli.

jiasli avatar jiasli commented on July 2, 2024

Allowing disabling token cache encryption was previously discussed in #19506.

Azure CLI does have a config option core.encrypt_token_cache for disabling token cache encryption:

az config set core.encrypt_token_cache=false

However, this feature is still marked as a EXPERIMENTAL and not officially documented:

# EXPERIMENTAL: Use core.encrypt_token_cache=False to turn off token cache encryption.
# encrypt_token_cache affects both MSAL token cache and service principal entries.
encrypt = cli_ctx.config.getboolean('core', 'encrypt_token_cache', fallback=fallback)

from azure-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.