Skip to content

Instantly share code, notes, and snippets.

@kerslake
Created July 7, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerslake/d516447639a581c702485212a2539220 to your computer and use it in GitHub Desktop.
Save kerslake/d516447639a581c702485212a2539220 to your computer and use it in GitHub Desktop.
$user = "your.email@domain.com"
$token = "abcdefg"
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $user,$token)))
$authHeader = "Basic {0}" -f $base64AuthInfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment