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

OAuth client parameters set via environment variables not supported? #1673

Open
skomma opened this issue Mar 2, 2020 · 0 comments
Open

OAuth client parameters set via environment variables not supported? #1673

skomma opened this issue Mar 2, 2020 · 0 comments

Comments

@skomma
Copy link
Member

skomma commented Mar 2, 2020

Environment

Host

item version
GROWI 3.6.8

How to reproduce? (再現手順)

What happens? (症状)

  • GROWI says something like:
    [2020-02-28T09:19:01.347Z] ERROR: growi:crowi/72 on growi-app-545-5ff9d79667-vxkdk: OAuth2Strategy requires a clientID option
    TypeError: OAuth2Strategy requires a clientID option
        at Strategy.OAuth2Strategy (/opt/growi/node_modules/passport-oauth2/lib/strategy.js:82:34)
        at new Strategy (/opt/growi/node_modules/passport-google-oauth20/lib/strategy.js:52:18)
        at PassportService.setupGoogleStrategy (/opt/growi/src/server/service/passport.js:341:7)
        at Crowi.setupPassport (/opt/growi/src/server/crowi/index.js:315:26)
        at Crowi.init (/opt/growi/src/server/crowi/index.js:98:10)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async Crowi.start (/opt/growi/src/server/crowi/index.js:369:3)
    
  • The OAuth login feature seems to be disabled.
    • When accessing /passport/google, GROWI renders a Wiki page named /passport/google.

What is the expected result? (期待される動作)

  • The OAuth login feature is enabled.

Note

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

No branches or pull requests

1 participant