Skip to content

Request-FalconToken #169

Answered by bk-cs
DiegoMessi1711 asked this question in Q&A
Discussion options

You must be logged in to vote

Most often, this error occurs when your token request is rejected due to attempting the request with the wrong cloud. Although the APIs are designed to redirect you to the right place, this doesn't work if your CID exists in us-gov-1, and sometimes fails due to PowerShell 5.1 handling the errors slightly differently than PowerShell Core (v7+).

Because Request-FalconToken defaults to the US-1 cloud (https://api.crowdstrike.com), you can resolve this by specifying the -Cloud or -Hostname parameter when running Request-FalconToken.

Request-FalconToken -Cloud us-2
Request-FalconToken -Hostname https://api.us-2.crowdstrike.com

https://github.com/CrowdStrike/psfalcon/wiki/Authentication#alter…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bk-cs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants