Test

<back to all web services

CreateJwt

The following routes are available for this service:
All Verbs/jwt
CreateJwt Parameters:
NameParameterData TypeRequiredDescription
JwtExpiryqueryDateTime?No
AuthUserSession Parameters:
NameParameterData TypeRequiredDescription
ReferrerUrlformstringNo
IdformstringNo
UserAuthIdformstringNo
UserAuthNameformstringNo
UserNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
FacebookUserNameformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
RequestTokenSecretformstringNo
CreatedAtformDateTimeNo
LastModifiedformDateTimeNo
RolesformList<string>No
PermissionsformList<string>No
IsAuthenticatedformboolNo
FromTokenformboolNo
ProfileUrlformstringNo
SequenceformstringNo
TagformlongNo
AuthProviderformstringNo
ProviderOAuthAccessformList<IAuthTokens>No
MetaformDictionary<string, string>No
AudiencesformList<string>No
ScopesformList<string>No
DnsformstringNo
RsaformstringNo
SidformstringNo
HashformstringNo
HomePhoneformstringNo
MobilePhoneformstringNo
WebpageformstringNo
EmailConfirmedformbool?No
PhoneNumberConfirmedformbool?No
TwoFactorEnabledformbool?No
SecurityStampformstringNo
TypeformstringNo
RecoveryTokenformstringNo
RefIdformint?No
RefIdStrformstringNo
IAuthTokens Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
UserIdformstringNo
AccessTokenformstringNo
AccessTokenSecretformstringNo
RefreshTokenformstringNo
RefreshTokenExpiryformDateTime?No
RequestTokenformstringNo
RequestTokenSecretformstringNo
ItemsformDictionary<string, string>No
CreateJwtResponse Parameters:
NameParameterData TypeRequiredDescription
TokenformstringNo
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jwt HTTP/1.1 
Host: test.servicestack.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"jwtExpiry":"\/Date(-62135596800000-0000)\/","referrerUrl":"String","id":"String","userAuthId":"String","userAuthName":"String","userName":"String","twitterUserId":"String","twitterScreenName":"String","facebookUserId":"String","facebookUserName":"String","firstName":"String","lastName":"String","displayName":"String","company":"String","email":"String","primaryEmail":"String","phoneNumber":"String","birthDate":"\/Date(-62135596800000-0000)\/","birthDateRaw":"String","address":"String","address2":"String","city":"String","state":"String","country":"String","culture":"String","fullName":"String","gender":"String","language":"String","mailAddress":"String","nickname":"String","postalCode":"String","timeZone":"String","requestTokenSecret":"String","createdAt":"\/Date(-62135596800000-0000)\/","lastModified":"\/Date(-62135596800000-0000)\/","roles":["String"],"permissions":["String"],"isAuthenticated":false,"fromToken":false,"profileUrl":"String","sequence":"String","tag":0,"authProvider":"String","providerOAuthAccess":[{}],"meta":{"String":"String"},"audiences":["String"],"scopes":["String"],"dns":"String","rsa":"String","sid":"String","hash":"String","homePhone":"String","mobilePhone":"String","webpage":"String","emailConfirmed":false,"phoneNumberConfirmed":false,"twoFactorEnabled":false,"securityStamp":"String","type":"String","recoveryToken":"String","refId":0,"refIdStr":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"token":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}