Giter Site home page Giter Site logo

Comments (5)

trwalke avatar trwalke commented on July 22, 2024 1

Adding P1 as this is throwing a null ref

from microsoft-authentication-extensions-for-dotnet.

jfullerton44 avatar jfullerton44 commented on July 22, 2024 1

I seem to have found the issue. When the StorageCreationPropertiesBuilder was being created I needed to add the service and account name using

WithMacKeyChain(
    "msal_service",
     "msal_account");

After I added this the issue went away. This also explains why the issue was only appearing on mac

from microsoft-authentication-extensions-for-dotnet.

bgavrilMS avatar bgavrilMS commented on July 22, 2024

@jfullerton44 - looking at the stack trace above, I don't think you are using a recent version of the library.

Microsoft.Identity.Client.MSAL.Extensions is currently at version 2.18.8 and MSAL itself is at 4.35.

MsalCacheStorage.ClearCore was removed by this commit, exactly 2 years ago.

Can you please upgrade to latest versions of MSAL and cache ext and try again?

from microsoft-authentication-extensions-for-dotnet.

jfullerton44 avatar jfullerton44 commented on July 22, 2024

I updated MSAL to 4.35 and Extensions to 2.18.8 and this is the stack trace now
image

from microsoft-authentication-extensions-for-dotnet.

bgavrilMS avatar bgavrilMS commented on July 22, 2024

Yes, but please add something more descriptive than "msal_service" / "msal_account". Use the name of your app. Open KeyChain app on mac and see how the data is stored there and how these labels are used.

from microsoft-authentication-extensions-for-dotnet.

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.