Skip to content

Grist Core OIDC issue - well known URL #6

@kirincorleone

Description

@kirincorleone

Hey, thanks for this project!

I have successfully used it for getoutline oidc, however I am facing problems with Grist

Grist OIDC is the configuration doc for OIDC.

Below are the env variables i used:

GRIST_OIDC_IDP_ISSUER=http://oidc-server.domain/oauth/authorize/
GRIST_OIDC_IDP_CLIENT_ID=clientid
GRIST_OIDC_IDP_CLIENT_SECRET=secret
GRIST_OIDC_SP_HOST=http://grist.domain
GRIST_OIDC_IDP_SCOPES=email openid profile

It may not be helpful, but below is the error from grist logs:

stderr OPError: expected 200 OK, got: 404 Not Found
stderr    at processResponse (/grist/node_modules/openid-client/lib/helpers/process_response.js:41:11)
stderr    at Issuer.discover (/grist/node_modules/openid-client/lib/issuer.js:179:18)
stderr    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
stderr    at async OIDCConfig._initClient (/grist/_build/app/server/lib/OIDCConfig.js:239:24)
stderr    at async OIDCConfig.initOIDC (/grist/_build/app/server/lib/OIDCConfig.js:149:9)
stderr    at async OIDCConfig.build (/grist/_build/app/server/lib/OIDCConfig.js:102:9)
stderr    at async Object.getMiddleware (/grist/_build/app/server/lib/OIDCConfig.js:323:28)
stderr    at async FlexServer.addLoginMiddleware (/grist/_build/app/server/lib/FlexServer.js:1083:33)
stderr    at async main (/grist/_build/app/server/mergedServerMain.js:86:5)
stderr    at async main (/grist/_build/stubs/app/server/server.js:143:20) {
stderr  error: 'expected 200 OK, got: 404 Not Found'
stderr}

I suspect that the examples for other apps in this doc Grist OIDC imply the GRIST_OIDC_IDP_ISSUER requires a .well-known url.

If so, would you be able to help out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions