Поделиться через


New-SCSPFTrustedIssuer

New-SCSPFTrustedIssuer

Creates a trusted issuer for claims-based authentication.

Syntax

Parameter Set: Empty
New-SCSPFTrustedIssuer -Key <String> -Name <String> [-Tenant <Tenant> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-SCSPFTrustedIssuer cmdlet creates certification credentials for claims-based authentication in Service Provider Foundation. The hoster obtains the public key of the certificate’s key value pair from the tenant (or on behalf of a tenant). The trusted issuer object is then used to validate signed tokens from the tenant so that access to resources can be granted.

Parameters

-Key<String>

Specifies the public key that validates a signed token submitted by a tenant in claims-based authentication.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies a name to give to the trusted issuer.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Tenant<Tenant>

Specifies a tenant object to associate with the new trusted issuer. To obtain a tenant, use the Get-SCSPFTenant cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1: Create a trusted issuer.

This command creates a trusted issuer with a previously defined key and a specified name.

PS C:\> New-SCSPFTrustedIssuer -Key $key -Name "Trey"

Remove-SCSPFTrustedIssuer

Get-SCSPFTrustedIssuer