luminus-framework / luminus

documentation site for Luminus framework
http://www.luminusweb.net/
629 stars 121 forks source link

+service profile conflicts with +auth #174

Closed robert-johansson closed 7 years ago

robert-johansson commented 7 years ago

it works with +auth-jwe though

yogthos commented 7 years ago

The reason is that +auth profile relies on the *identity* var in the layout namespace that's not generated when the +service profile is used. One option could be to move identity to a different namespace. Perhaps, the *identity* var could be deprecated altogether though.

yogthos commented 7 years ago

Yeah, I looked through the template and there's no reason to have the *identity* key as the identity is already available in the session. I've removed it and pushed a new version of the template where +auth and +service are no longer conflicting.

robert-johansson commented 7 years ago

OK thanks!