AuthenticationBase<T>.IssueAuthenticationToken Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Issues a token for the authenticated principal.
Namespace: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Protected Overridable Sub IssueAuthenticationToken ( _
principal As IPrincipal, _
isPersistent As Boolean _
)
'Usage
Dim principal As IPrincipal
Dim isPersistent As Boolean
Me.IssueAuthenticationToken(principal, _
isPersistent)
protected virtual void IssueAuthenticationToken(
IPrincipal principal,
bool isPersistent
)
protected:
virtual void IssueAuthenticationToken(
IPrincipal^ principal,
bool isPersistent
)
abstract IssueAuthenticationToken :
principal:IPrincipal *
isPersistent:bool -> unit
override IssueAuthenticationToken :
principal:IPrincipal *
isPersistent:bool -> unit
protected function IssueAuthenticationToken(
principal : IPrincipal,
isPersistent : boolean
)
Parameters
- principal
Type: System.Security.Principal.IPrincipal
The authenticated principal.
- isPersistent
Type: System.Boolean
A value that indicates whether the token should persist between sessions.
Remarks
This method is invoked from Login when the user is authenticated. By default, the method will issue a token by leveraging the cookie support in FormsAuthentication. The base implementation does not need to be invoked when this method is overridden.
See Also
Reference
System.ServiceModel.DomainServices.Server.ApplicationServices Namespace