gnap-caep-risc-nodejs
    Preparing search index...

    gnap-caep-risc-nodejs

    gnap-caep-risc-nodejs: a server-side GNAP client for a traditional web application.

    import { GnapClient } from 'gnap-caep-risc-nodejs';

    const gnap = GnapClient.fromFile('gnap.json'); // loads the key; does not discover
    const started = await gnap.requestGrant(); // send the browser to started.redirectUrl
    const done = await gnap.finishRedirect(query, { allowedIds });

    The private key stays in this process. Tokens are key-bound. The browser carries only the interaction hash.

    GnapClient
    GnapError
    MemorySessionIndex
    SignalsReceiver
    ClientKey
    Continuation
    FinishedGrant
    GnapConfigFile
    Grant
    GrantRequestOptions
    GrantServerMetadata
    OpenIdMetadata
    PendingGrant
    Person
    PublicJwk
    ResolvedConfig
    SecurityPosture
    SessionIndex
    SignalEvent
    SignalsReceiverOptions
    SignedRequest
    SubjectRef
    TrackedSession
    GnapErrorCode
    KeyProof
    CAEP_EVENTS
    DEFAULT_ENDING_EVENTS
    DEFAULT_EVENTS_REQUESTED
    EVENT
    RISC_EVENTS
    createSelfSignedKeyPair
    discoverGrantServer
    discoverOpenId
    interactionHash
    loadClientKey
    personFrom
    publicKeyObject
    readConfigFile
    resolveConfig
    subjectOf
    trackedFromPerson
    validateGrantServer
    wellKnownUrls