Gets the Scope for the STS. For more information see Building an STS.
Namespace: Microsoft.IdentityModel.SecurityTokenService
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim principal As IClaimsPrincipal
Dim request As RequestSecurityToken
Dim returnValue As Scope

returnValue = Me.GetScope(principal, request)

Syntax

Visual Basic
Protected MustOverride Function GetScope ( _
		principal As IClaimsPrincipal, _
		request As RequestSecurityToken _
) As Scope
C#
protected abstract Scope GetScope (
		IClaimsPrincipal principal,
		RequestSecurityToken request
)
C++
protected:
virtual Scope^ GetScope (
		IClaimsPrincipal^ principal, 
		RequestSecurityToken^ request
) abstract
J#
protected abstract Scope GetScope (
		IClaimsPrincipal principal, 
		RequestSecurityToken request
)
JScript
protected abstract function GetScope (
		principal : IClaimsPrincipal, 
		request : RequestSecurityToken
) : Scope

Parameters

principal

The Microsoft.IdentityModel.Claims.IClaimsPrincipal of the client making the request.

request

The incoming request.

Return Value

Returns Scope.

Remarks

EncryptingCredentials determines whether or not tokens are encrypted. TokenEncryptionRequired and SymmetricKeyEncryptionRequired also default to true to prevent the STS from issuing insecure tokens.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also