rob006 maicol07 You should not have version specified in your composer.json - version is detected from tag name.
maicol07 rob006 Yeah, Packaging team said me too (honestly didn't know about it). Tomorrow I will remove it.
maicol07 FIXED! Now with release 1.4.3 (rolled only for update packagist) version is bumped up automatically and there shouldn't be errors anymore (until new releases...)
Sndan I wasnt able to get this to work ,,,,, I try to login but it freeze with no error ?! not sure about the instructions are not clear thanks
maicol07 Sndan do you have a screenshot or something else? What version of the extension are you using?
Sndan maicol07 Uncaught TypeError: this.identification is not a function at e.n.onready (LogInModal.js:150) at e.n.onready (ModalManager.js:103) at e.n.show (ModalManager.js:57) at HTMLButtonElement.onclick (HeaderSecondary.js:85) at HTMLButtonElement.L.t.<computed> (mithril.js:1286) LogInModal.js:150 Uncaught TypeError: this.identification is not a function at e.n.onready (LogInModal.js:150) at e.n.onready (ModalManager.js:103) at HTMLDivElement.dispatch (jquery.js:5237) at HTMLDivElement.g.handle (jquery.js:5044) at Object.trigger (jquery.js:8471) at HTMLDivElement.<anonymous> (jquery.js:8549) at Function.each (jquery.js:367) at N.fn.init.each (jquery.js:202) at N.fn.init.trigger (jquery.js:8548) at HTMLDivElement.<anonymous> (modal.js:103) LogInModal.js:158 Uncaught TypeError: this.identification is not a function at e.n.onsubmit (LogInModal.js:158) at HTMLFormElement.L.t.<computed> (mithril.js:1286) LogInModal.js:150 Uncaught TypeError: this.identification is not a function at e.n.onready (LogInModal.js:150) at e.n.onready (ModalManager.js:103) at e.n.show (ModalManager.js:57) at HTMLButtonElement.onclick (HeaderSecondary.js:85) at HTMLButtonElement.L.t.<computed> (mithril.js:1286) n.onready @ LogInModal.js:150 n.onready @ ModalManager.js:103 n.show @ ModalManager.js:57 onclick @ HeaderSecondary.js:85 L.t.<computed> @ mithril.js:1286 LogInModal.js:150 Uncaught TypeError: this.identification is not a function at e.n.onready (LogInModal.js:150) at e.n.onready (ModalManager.js:103) at HTMLDivElement.dispatch (jquery.js:5237) at HTMLDivElement.g.handle (jquery.js:5044) at Object.trigger (jquery.js:8471) at HTMLDivElement.<anonymous> (jquery.js:8549) at Function.each (jquery.js:367) at N.fn.init.each (jquery.js:202) at N.fn.init.trigger (jquery.js:8548) at HTMLDivElement.<anonymous> (modal.js:103) n.onready @ LogInModal.js:150 n.onready @ ModalManager.js:103 dispatch @ jquery.js:5237 g.handle @ jquery.js:5044 trigger @ jquery.js:8471 (anonymous) @ jquery.js:8549 each @ jquery.js:367 each @ jquery.js:202 trigger @ jquery.js:8548 (anonymous) @ modal.js:103 o @ jquery.js:4985 handle @ transition.js:54 dispatch @ jquery.js:5237 g.handle @ jquery.js:5044 trigger @ jquery.js:8471 (anonymous) @ jquery.js:8549 each @ jquery.js:367 each @ jquery.js:202 trigger @ jquery.js:8548 (anonymous) @ transition.js:40 setTimeout (async) t.fn.emulateTransitionEnd @ transition.js:41 (anonymous) @ modal.js:105 o @ jquery.js:4985 handle @ transition.js:54 dispatch @ jquery.js:5237 g.handle @ jquery.js:5044 trigger @ jquery.js:8471 (anonymous) @ jquery.js:8549 each @ jquery.js:367 each @ jquery.js:202 trigger @ jquery.js:8548 (anonymous) @ transition.js:40 setTimeout (async) t.fn.emulateTransitionEnd @ transition.js:41 e.backdrop @ modal.js:217 e.show @ modal.js:77 (anonymous) @ modal.js:316 each @ jquery.js:367 each @ jquery.js:202 n @ modal.js:309 n.show @ ModalManager.js:56 onclick @ HeaderSecondary.js:85 L.t.<computed> @ mithril.js:1286 LogInModal.js:158 Uncaught TypeError: this.identification is not a function at e.n.onsubmit (LogInModal.js:158) at HTMLFormElement.L.t.<computed> (mithril.js:1286) n.onsubmit @ LogInModal.js:158 L.t.<computed> @ mithril.js:1286
andycastles @maicol07 I've just installed your extension but I'm unable to change any of the settings from within Flarum. Looking at the source code it looks like it's trying to use the fof-components settings functionality to display a settings window for updating the login url, etc, but it's throwing a JavaScript error: SSOSettingsModal.js:2 Uncaught TypeError: Cannot read property 'settings' of undefined at Module../src/admin/components/SSOSettingsModal.js (SSOSettingsModal.js:2) at __webpack_require__ (bootstrap:19) at Module../src/admin/index.js (index.js:1) at __webpack_require__ (bootstrap:19) at Module../admin.js (admin.js:1) at __webpack_require__ (bootstrap:19) at bootstrap:83 at bootstrap:83 It looks like settings isn't available in the JavaScript when it's calling import {settings} from '@fof/components'; Any idea what the problem could be?
maicol07 andycastles maybe for/components doesn't get installed automatically (I don't know why). Do you have the fof/components package correctly installed?
gus andycastles I had the same issue than you, it showed up when I updated Flarum 2 days ago. To fix it, I unchecked the extension (in the admin dashboard) and then rechecked it.
t0t0 Hello đ When i call the "getToken" function the API response is : {"errors":[{"status":"401","code":"not_authenticated"}]} My API key length is 40 and user_id is 1. Do you know why i get this error ?
t0t0 maicol07 I passe to the login function user's username ans email. The password is generate inside the login function with createPassword()
richstandbrook It's taken me a while to realise there should be a config dialog when I install the extension. I've been searching for where to set the config. I don't ever see a config dialog in the admin at all. Anyone else had this?
luceos richstandbrook can you manually clear the cache (either from the admin dashboard or php flarum cache:clear)
maicol07 richstandbrook that's very strange... Do you have for/components package installed? (See in your vendor folder)
richstandbrook maicol07 did you mean vendor/fof? I do have that yes. I've installed the flagrow/passport package as well and that offers a settings dialog, but there isn't one for the flarum-ext-sso extension âšī¸