IIdentity ApiCreate Authorization Code Method
To create an authorization code to serve for getting the access token later.
Example
C#
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);Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
string CreateAuthorizationCode(
AuthorizationCodeModel authorizationCodeModel
)Parameters
- authorizationCodeModel AuthorizationCodeModel
- Given username
Return Value
String[Missing <returns> documentation for "M:Casewhere.Runtime.DSL.Api.IIdentityApi.CreateAuthorizationCode(Casewhere.Runtime.DSL.Api.AuthorizationCodeModel)"]