1

I am trying generate an Azure AD token but i am getting an error with the following;

    var authParam = new PlatformParameters(PromptBehavior.Auto);

The error is;

There is no argument given that corresponds to the required formal parameter 'customWebUI' of 'PlatformParameters.PlatformParameters(PromptBehabior, ICustomWebUi)

I have tried adding;

    var authParam = new PlatformParameters(PromptBehavior.Auto, true);

But with that i get;

cannot convert from 'bool' to Microsoft.IdentityModel.Clients.ActiveDirectory.Extensibility.ICustomWebUi'

I am missing something?

2
  • seems that the second parameter is not a boolean but Microsoft.IdentityModel.Clients.ActiveDirectory.Extensibility.ICustomWebUi Mar 19, 2020 at 20:45
  • can you share the full code / link you've followed Mar 19, 2020 at 20:46

1 Answer 1

-1

You were using .NET Core framework, but referred to a .net framework sample.

With .NET Core framework, I will encounter the same error as yours.

enter image description here

With .NET Framework, it just works fine.

enter image description here

enter image description here

2
  • 2
    Any idea how to implement this in .NET Core though?
    – UnionP
    Mar 24, 2020 at 21:38
  • Tony - your answer is not helpful at all. If we wanted to use .NET Framework I'd use .NET Framework. Sounds like your documentation needs updating. May 21, 2020 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.