From 0263c9ae890b053646123d16405f6f38a41b1c83 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 22 Dec 2021 12:35:31 +0100 Subject: [PATCH] Delete auth.ps1 Whoops --- auth.ps1 | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 auth.ps1 diff --git a/auth.ps1 b/auth.ps1 deleted file mode 100755 index 34750cd963..0000000000 --- a/auth.ps1 +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env pwsh - -# Old version -<# -# Constants -$loginToken = "kSiBszXoB5hOQBAMBC//f2YcxD76Ec36rlKy+f8sjhY=" -$authServer = "http://localhost:5000/" -$localServer = "http://localhost:1212/" -$userName = "PJB" - -$authUrl = $authServer + "api/session/getToken" -$localUrl = $localServer + "info" - -$pubKey = Invoke-WebRequest $localUrl | - select -exp Content | - ConvertFrom-Json | - select -exp auth | - select -exp public_key - -$postData = @{"ServerPublicKey"=$pubkey} | ConvertTo-Json - -$token = Invoke-WebRequest $authUrl ` - -Method Post -Body $postData ` - -Headers @{"Authorization"="SS14Auth $loginToken"} ` - -ContentType "application/json" | - select -exp Content - -echo $token - -bin/Content.Client/Content.Client --launcher --username $userName ` - --cvar "auth.token=$token" ` - --cvar "auth.serverpubkey=$pubKey" -#> - -$loginToken = "kSiBszXoB5hOQBAMBC//f2YcxD76Ec36rlKy+f8sjhY=" -$authServer = "http://localhost:5000/" -$userName = "PJB" -$userId = "957ebebb-1a06-4a6e-b8ae-f76d98d01adf" -