Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grist Core OIDC issue - well known URL #6

Open
kirincorleone opened this issue Aug 23, 2024 · 0 comments
Open

Grist Core OIDC issue - well known URL #6

kirincorleone opened this issue Aug 23, 2024 · 0 comments

Comments

@kirincorleone
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant