Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Authentication for Api #27

Open
libofeng opened this issue Jul 28, 2014 · 1 comment
Open

Authentication for Api #27

libofeng opened this issue Jul 28, 2014 · 1 comment

Comments

@libofeng
Copy link

Hi

I noticed there will be an error raised when visit the API without authentication.

"""werkzeug.routing.BuildError: ('security.login', {}, None)"""

If this works as design, what would be the right way to avoid the error?

Thanks

@libofeng
Copy link
Author

Currently I add an error handler to handle this exception:
"""app.errorhandler(BuildError)(on_authentication_fail)"""

But obviously it's the ugly solution, could you please share the idea how did you design the authentication for Api or what would be the right solution?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant