dgAuthService.start() and POST without username and password data
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?
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.
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).