ClaimInfo Event

Fires once for each claim.

Syntax

ANSI (Cross Platform)
virtual int FireClaimInfo(JWTClaimInfoEventParams *e);
typedef struct {
const char *Name;
const char *Value;
int DataType; int reserved; } JWTClaimInfoEventParams; Unicode (Windows) virtual INT FireClaimInfo(JWTClaimInfoEventParams *e);
typedef struct {
LPCWSTR Name;
LPCWSTR Value;
INT DataType; INT reserved; } JWTClaimInfoEventParams;
- (void)onClaimInfo:(NSString*)name :(NSString*)value :(int)dataType;
#define EID_JWT_CLAIMINFO 1

virtual INT IPWORKSAUTH_CALL FireClaimInfo(LPSTR &lpszName, LPSTR &lpszValue, INT &iDataType);

Remarks

When Decrypt, Verify or Parse is called this event will fire once for each claim in the JWT.

Name is the name of the claim.

Value is the value of the claim.

DataType specifies the JSON data type of the value. Possible values are:

  • 0 (Object)
  • 1 (Array)
  • 2 (String)
  • 3 (Number)
  • 4 (Bool)
  • 5 (Null)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 C++ Edition - Version 20.0 [Build 8155]