Skip to content

node/examples/bootstrappedAppESM/ : A redirection handler must be provided in the Node environment. but we can't have one #3175

@scenaristeur

Description

@scenaristeur

trying ~/dev/solid-client-authn-js/packages/node/examples/bootstrappedAppESM/src$ node authenticatedScript.mjs --clientId https://id.inrupt.com/my_user --oidcIssuer https://login.inrupt.com/ --clientSecret mypassword --resource https://otherpod.solidcommunity.net/profile/card

i've got this error

Error: A redirection handler must be provided in the Node environment.
    at Redirector.redirect (file:///home/user/dev/solid-client-authn-js/packages/node/dist/index.mjs:896:19)
    at AuthorizationCodeWithPkceOidcHandler.handleRedirect (file:///home/user/dev/solid-client-authn-js/packages/core/dist/index.mjs:349:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ClientAuthentication.login (file:///home/user/dev/solid-client-authn-js/packages/node/dist/index.mjs:83:33)
    at async Session.login (file:///home/user/dev/solid-client-authn-js/packages/node/dist/index.mjs:1292:31)
    at async main (file:///home/user/dev/solid-client-authn-js/packages/node/examples/bootstrappedAppESM/src/authenticatedScript.mjs:37:3)

whereas in the doc , a handler is optional

image

and as we are on the server side, we can not have a url for redirection

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions