Skip to content
LogoLogo

CredentialProvider

The interface nautilus calls to satisfy credential-gated access. One method.

class  implements CredentialProvider {
  async (: CredentialChallenge): <PolicyServerPayload | null> { 
    .
    .
    .
    . // the node that will enforce this policy
 
    return null // null = nothing to prove
  }
}

Returning null means the service is not gated, or verification already succeeded — nautilus then proceeds without a presentation.

Implementations

ClassUse
WaltIdCredentialProviderDrives a real walt.id wallet through the whole exchange.
StaticCredentialProviderYou already hold a verifier session id.
NoopCredentialProviderAlways null. The default.