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

dgAuthService.start() and POST without username and password data #10

Open
glauberportella opened this issue Feb 19, 2015 · 2 comments
Open
Labels

Comments

@glauberportella
Copy link

Hi, I think I don't really understand the way angular-digest-auth works I have an API that auths via URL "/api/authenticate" that expects a POST with JSON body with username and password, I configured the angular-digest-auth to that URL but on my angular app.run() when I do a dgAuthSercive.start() it calls my API URL via POST but without pass any body or any username and password via another way. Is there a example app configured so I can figure out how it really works?

@tafax tafax added the question label Feb 19, 2015
@tafax
Copy link
Owner

tafax commented Feb 19, 2015

This library can't satisfy your needs to send a JSON because its purpose is to work with digest authentication. It is a standard HTTP authentication protocol in which you have to send auth information through a specific request header. Please check this link for more details.

@glauberportella
Copy link
Author

Ok, thanks. My backend is a Symfony 2 bundle and I have activated the http_digest firewall for it, so could you give me some example how to use the lib? I try to configure and use it like the README and for the requests I haven't see any header sent by the library, and after I do .setCredentials() and .signin() the related cookie did not saves the credentials (cookie username and password values still blank).

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

No branches or pull requests

2 participants