-
Notifications
You must be signed in to change notification settings - Fork 428
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
HTTP auth module #274
HTTP auth module #274
Conversation
I'll reopen in a moment to trigger travis build. |
travis is using test branch |
|
||
-include("ejabberd.hrl"). | ||
|
||
-define(PREP, begin LUser = jlib:nodeprep(User), LServer = jlib:nameprep(Server) end). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This macro is handy, but makes the code unclear (in my opinion). I'd rather use an inline function returning 2 elements tuple.
{LUser, LServer} = prep_user_server(...)
Macro removed, it's ready for merge. I will add wiki page once it passes language check. :) |
Resolves #211 |
Does anyone feel something should be changed/fixed in this extension? |
Adds standard HTTP auth module that can interface directly with external REST API compliant with specifications.