Skip to content

Fix for authentication dialog and headers#8

Open
dnewsholme wants to merge 2 commits intorobotechredmond:masterfrom
dnewsholme:master
Open

Fix for authentication dialog and headers#8
dnewsholme wants to merge 2 commits intorobotechredmond:masterfrom
dnewsholme:master

Conversation

@dnewsholme
Copy link

Fix for auth headers not being parsed due to missing method AquireToken

Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext now has a method called AquireTokenAsync for .NET Core. So use this method instead.

Method invocation failed because [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] does not contain a method named 'AcquireToken'.

Issue when trying on PS 5.1 with Az module. The [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]::AquireToken() no longer exists as method and has been replaced with [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]::AquireTokenAsync() for PS Core compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant