Constructors

Methods

  • To accept claim consent, call acceptClaimConsent().

    Parameters

    Returns Promise<any>

    cidaasConsentService.acceptClaimConsent({
    client_id: 'your client id',
    sub: 'masked sub',
    accepted_claims: [your claim consents]
    });
  • To accept consent, call acceptConsent().

    Parameters

    Returns Promise<any>

    cidaasConsentService.acceptConsent({
    client_id: 'your client id',
    consent_id: 'consent id',
    consent_version: 'consent version id',
    sub: 'masked sub'
    }).then((response) => {
    // the response will give you details of accepted consent.
    }).catch((err) => {
    // your failure code here
    });
  • To accept scope consent, call acceptScopeConsent().

    Parameters

    Returns Promise<any>

    cidaasConsentService.acceptScopeConsent({
    client_id: 'your client id',
    sub: 'masked sub',
    scopes: [your scope consents]
    });