Skip to content
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

Merged
merged 15 commits into from
Sep 10, 2014
Merged

HTTP auth module #274

merged 15 commits into from
Sep 10, 2014

Conversation

fenek
Copy link
Member

@fenek fenek commented Aug 22, 2014

Adds standard HTTP auth module that can interface directly with external REST API compliant with specifications.

@michalwski
Copy link
Contributor

I'll reopen in a moment to trigger travis build.

@michalwski michalwski closed this Aug 22, 2014
@michalwski michalwski reopened this Aug 22, 2014
@mongoose-im
Copy link
Collaborator

travis is using test branch auth_http from https://github.com/esl/ejabberd_tests/tree/auth_http


-include("ejabberd.hrl").

-define(PREP, begin LUser = jlib:nodeprep(User), LServer = jlib:nameprep(Server) end).
Copy link
Contributor

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(...)

@fenek
Copy link
Member Author

fenek commented Aug 25, 2014

Macro removed, it's ready for merge. I will add wiki page once it passes language check. :)

@michalwski
Copy link
Contributor

Resolves #211

@fenek
Copy link
Member Author

fenek commented Sep 8, 2014

Does anyone feel something should be changed/fixed in this extension?

michalwski added a commit that referenced this pull request Sep 10, 2014
@michalwski michalwski merged commit 9cf5b4c into master Sep 10, 2014
@michalwski michalwski deleted the auth_http branch November 26, 2014 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants