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
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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	jwtExpiry: 0001-01-01,
	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: 0001-01-01,
	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: 0001-01-01,
	lastModified: 0001-01-01,
	roles: 
	[
		String
	],
	permissions: 
	[
		String
	],
	isAuthenticated: False,
	fromToken: False,
	profileUrl: String,
	sequence: String,
	tag: 0,
	authProvider: String,
	providerOAuthAccess: 
	[
		{
			
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}