Last active
May 18, 2022 21:01
-
-
Save azurekid/081d0a0128bd10ad24cae544b4388888 to your computer and use it in GitHub Desktop.
TokenHeader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$authenticationHeader = @{ | |
"Sec-Fetch-Dest" = "empty"; | |
"Sec-Fetch-Mode" = "cors"; | |
"accept-encoding" = "gzip, deflate, br"; | |
"accept-language" = "en"; | |
"x-ms-effective-locale" = "en.en-us" | |
"Authorization" = "Bearer <#TokenValuePlainText#>"; | |
"Content-Type" = "application/json"; | |
"x-ms-client-request-id" = (New-Guid).Guid; | |
"x-ms-session-id" = "12345678910111213141516"; | |
"Accept" = "*/*"; | |
"x-requested-with" = "XMLHttpRequest"; | |
"user-agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3829.0 Safari/537.36 Edg/77.0.197.1"; | |
"method" = "GET" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
This Header can be used to authenticate against the 'hidden' Azure AD API
Example