summaryrefslogtreecommitdiffstats
path: root/packages/wekan-oidc
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix OIDC login.Lauri Ojansivu2019-06-121-6/+6
| | | | Thanks to xet7 !
* Update oidc_server.jsbenji2019-06-111-1/+7
| | | | | | | | | | with this fix, Authentication via OAuth2 with Google is possible. 1.) token endpoint and userinfo-endpoint in Google are different, so you have to check that, 2.) request the scopes of the environment variable "process.env.OAUTH2_REQUEST_PERMISSIONS" with this small little fix the login with google in oauth2-protocol gets possible :-) I would be very happy about a master-merge thank you in advance
* Fix Scope parsing Issue for OAuth2 LoginDominikPf2019-05-231-3/+2
|
* fix(oidc): can not log inSamuel2019-04-261-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trying to configure wekan authenticating against LemonLDAP-NG, I used to read about errors like the following: ``` XXX: getUserInfo response: { sub: 'demoone' } XXX: userinfo: { sub: 'demoone' } {"line":"431","file":"oauth.js","message":"Error in OAuth Server: id is not defined","time":{"$date":1556286530412},"level":"warn"} Exception while invoking method 'login' { stack: 'ReferenceError: id is not defined\n at Object.handleOauthRequest (packages/wekan-oidc.js:39:68)\n at OAuth._requestHandlers.(anonymous function) (packages/oauth2.js:27:31)\n at middleware (packages/oauth.js:203:5)\n at packages/oauth.js:176:5', source: 'method' } ``` Looking at the sources, that error message seems to be right: we have several references to `id`, `uid`, `displayName` or `email`, which are not defined. Probably a typo, assuming we meant these to be strings. Applying that patch, I confirm I can finally log in: ``` XXX: getUserInfo response: { sub: 'demoone' } XXX: userinfo: { sub: 'demoone' } XXX: serviceData: { id: undefined, username: undefined, fullname: undefined, accessToken: 'e57dc4e9e81cc98c279db3ed08b1c72f', expiresAt: 1556298699213, email: undefined } XXX: profile: { name: undefined, email: undefined } ``` All the credit goes to @pcurie .
* Include to Wekan packages directory contents, so that meteor command would ↵Lauri Ojansivu2019-04-208-0/+279
build all directly. This also simplifies build scripts. Thanks to xet7 !