bin/Get-RestUserAuth.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function Get-RestUserAuth
{
    # This Function represents a way to Gather a UserAuth String.
    # This is meant to be updated to suit your specific needs. Such as:
    # Getting a password Hash
    # Getting a web Token
    # Or any other way to validate User Authentication
    $UserAuth = @{
        UserData = @(
            @{
                UserName         = 'RestServer'
                SystemAuthString = 'abcd'
            },
            @{
                UserName         = 'client'
                SystemAuthString = '1234'
            },
            @{
                UserName         = 'DemoClient.PowerShellDemo.io'
                SystemAuthString = 'abcd1234'
            }
        )
    }
    $UserAuth
}