Skip to content

get-SilverfortToken

SYNOPSIS

Generates a JWT-token for Silverfort-API.

SYNTAX

get-SilverfortToken [-id] <String> [-secret] <String> [<CommonParameters>]

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

get-SilverfortToken -id '05bc8fab-a6339163' -secret 'xxxxxxx'

Create a JWT-token for the risk api-user

EXAMPLE 2

get-SilverfortToken -id '23d57313-21b3355f' -secret 'xxxxxxx'

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.

INPUTS

OUTPUTS

NOTES