UserTokenManager.CreateNewToken

Adds a new token record into the db and returns the new token id.

Parameters map to the modifiable user token table fields, so you can provide initial values.

public string CreateNewToken(string userId, string referenceId, 
			string tokenIdentifier, string scope, 
			string data)

Parameters

userId
A mapping user id that maps into a user/customer table of the application

referenceId
An optional reference id

tokenIdentifier
An optional token identifier that can be used to retrieve a token after creation. Must be 8 or more chars long or null if not provided

scope
Optional scope identifier

data
Optional additional data that can be stored