-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use @authenticated!
and current_user()
from within MyModelController.jl
.
#11
Comments
@mcvmcv thanks for flagging this - can you share the app as a zip file to make it easier to debug? |
@mcvmcv Judging by the warning it looks like there is no |
WatchTonight.zip The
|
@mcvmcv thank you! I'll try to debug it today and follow up. |
I'm having the same issue as @mcvmcv |
@MRoqueta - thanks, I haven't had the chance to look into it but I'll try to soon, we'll need a fresh release and some refactoring of the package, so it would be a good opportunity. |
Confirmed issue with the This has been addressed in v2.1 -- the |
According to the documentation in the readme at https://github.com/GenieFramework/GenieAuthentication.jl, there are two main ways to use the GenieAuthentication
@authenticated!
macro:1/ In
routes.jl
:2/ In a controller file:
I am finding that only the first works correctly.
To reproduce:
Construct a minimal WatchTonight style app with GenieAuthentication.
In
routes.jl
and in MoviesController.jl:
Then
/test
and/test2
show the current user (here,nothing
) in the repl and redirect to login as expected, while/test_movies
continually redirects to itself before giving up.Additional information:
The first time loading this project I got:
This line about
show_login
not being defined didn't appear on subsequentbin/server
commands.While running the server, editing the
MoviesController.test_movies
function (causing recompilation?) means that/test_movies
redirects to/login
correctly.Routes like
/test
and/test2
above can use thecurrent_user()
function defined in/plugins/genie_authentication.jl
, while/test_movies
cannot find it.Versions, packages, etc:
The text was updated successfully, but these errors were encountered: