I am trying to slowly move my Bloggr example to Octanes Module Unification and I got it almost working. The only step left is that I don’t know how Ember Simple Auth must find the pouch.js authenticator in the src folder. See: https://github.com/broerse/ember-cli-blog/blob/master/src/simple-auth/authenticators/pouch.js So at the moment you can’t login
Can someone point me in the right direction? It seems I am almost there.
1 Like
I did this recently, are you using module unification? If so, you’ll need this config:
import Resolver from 'ember-resolver/resolvers/fallback';
import buildResolverConfig from 'ember-resolver/ember-config';
import config from '../config/environment';
let moduleConfig = buildResolverConfig(config.modulePrefix);
/*
* If your application has custom types and collections, modify moduleConfig here
* to add support for them.
*/
moduleConfig.types = Object.assign(moduleConfig.types, {
'session': { definitiveCollection: 'session' },
'session-store': { definitiveCollection: 'session-store' },
'authenticator': { definitiveCollection: 'authenticator' },
});
moduleConfig.collections = Object.assign(moduleConfig.collections, {
authenticators: {
This file has been truncated. show original
Thanks but this was already in my code:
https://github.com/broerse/ember-cli-blog/blob/master/src/resolver.js#L23
but it does not use the pouch authenticator with this. I think I have put the authenticator in the correct folder. Can you take a look? Almost working source: GitHub - broerse/ember-cli-blog: Tom Dale's blog example updated for the Ember CLI
1 Like
Looks like the collections part is missing?
Thanks for helping me. I got it working !!!. In your source and mine, there is a mismatch between definitiveCollection: 'authenticator'
and the collection authenticators
. I fixed it just now by adding the s
and the simple-auth
group. See:
committed 12:08PM - 26 Mar 19 UTC
1 Like