Xperience 13 API Reference
Xperience 13 API Reference
Namespaces
CMS Namespaces
CMS.Membership Namespaces
CMS.Membership.Internal
SecurityTokenManager(T) Class
SecurityTokenManager(T) Methods
GetToken Method
GetUserFromToken Method
SecurityTokenManager
T
GetToken Method
Gets JWT token for current user.
Namespace:
CMS.Membership.Internal
Assembly:
CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
Copy
public
string
GetToken
(
IUserInfo
user
)
Parameters
user
Type:
CMS.Base
IUserInfo
User info which should be serialized into the token.
Return Value
Type:
String
Serialized the JWT token.
Implements
ISecurityTokenManager
T
GetToken(IUserInfo)
Exceptions
Exception
Condition
ArgumentException
Throws when
user
has missing
UserAuthenticationGUID
or
UserName
.
See Also
Reference
SecurityTokenManager
T
Class
CMS.Membership.Internal Namespace
Copyright (c) 2023 Kentico Software
Send comments on this topic to
support@kentico.com