maxpowa / nodepomf

Pomf, rewritten in NodeJS. See it in action @
https://aww.moe
51 stars 14 forks source link

Kanri? #17

Closed taxilly closed 8 years ago

taxilly commented 8 years ago

In config/core.js line 112

// Session options for Kanri. !! YOU MUST SET THESE FOR KANRI TO WORK !!

I understand that it's some auth. page, but could you explain what this is for, do I even need it?

Aareksio commented 8 years ago

It's basic control panel for the application.

maxpowa commented 8 years ago

As @Aareksio said, basic control panel. It's not required in any way for the app to run correctly. I'm actually planning on removing it since it's really badly designed.

Naming came from some of my more cringy weeb nature showing through, kanri translates as “management.”

taxilly commented 8 years ago

I can get it authorize my account to use the OAuth, but it just keeps looping back to login, see:

GET /images/sign_in_github_pressed.png 304 6.226 ms - -
GET /auth/github 302 14.479 ms - 0
GET /auth/github/callback?code=c03a3ac678dc82b71ccf 302 1410.760 ms - 70
GET /kanri/stream 302 5.361 ms - 68
GET /kanri/login 200 326.553 ms - 1807
...
...
...

I can see it gets the 302 to redirect but nothing happens? My core.js kanri conf:

config.GITHUB_CLIENT_ID = secret.clientID;
config.GITHUB_CLIENT_SECRET = secret.clientSecret;

config.SESSION_OPTIONS = {
        name: 'kanri.session',
        secret: secret.Key,
        maxAge: (86400 * 1000), 
        secureProxy: true,
        domain: "https://movw-space.cf"
}
Aareksio commented 8 years ago

Your session is not persisting - try setting secureProxy to false.