Click or drag to resize

IIdentityApiCreateAuthorizationCode Method

To create an authorization code to serve for getting the access token later.
Examples
var identityApi = ctx.Use<IIdentityApi>();
var model = new AuthorizationCodeModel 
{
    WorkerSiteDomain = "your-worker.casewhere.com",
    Username = "NemUser",
    Claims = new Dictionary<string, string>{ { "CPR", "12345" } },
    ExpiredSessionMinutes = 180
};
identityApi.CreateAuthorizationCode(model);

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
string CreateAuthorizationCode(
	AuthorizationCodeModel authorizationCodeModel
)

Parameters

authorizationCodeModel
Type: AuthorizationCodeModel
Given username

Return Value

Type: String

[Missing <returns> documentation for "M:Casewhere.Runtime.DSL.Api.IIdentityApi.CreateAuthorizationCode(Casewhere.Runtime.DSL.Api.AuthorizationCodeModel)"]

See Also