get-SilverfortToken
SYNOPSIS
Generates a JWT-token for Silverfort-API.
SYNTAX
DESCRIPTION
This function generates a JWT-token for Silverfort, based on 2 parameters. This parameters are the id of the app-user and the app-secret which are found in Passwordstate
EXAMPLES
EXAMPLE 1
Create a JWT-token for the risk api-user
EXAMPLE 2
Create a JWT-token for the Service-account api-user
CHANGELOG YYYY-MM-DD - Naam - Wat gewijzigd 2025-01-06 - MM - Initieel script
PARAMETERS
-id
Id of the app-user. There are app-users for Service Accounts, Operations, Risk, Policies, ...
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-secret
Secret of the app-user
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.