The angular-http-auth tag has no usage guidance.
1
vote
1answer
19 views
How do I apply state transition inside AngularJS $rootScope event listeners?
I am currently facing a problem in using angular-http-auth library which is handling a state transition from events of event:auth-loginRequired. I am using angular-ui-router for my routing systems.
...
1
vote
2answers
17 views
add config in angular resource
I am using http-auth-interceptor for authentication. In http-auth-interceptor, I use the following way to login:
var data = 'username=' + encodeURIComponent(user.userId) + '&password=' + ...
2
votes
1answer
159 views
Correct way to set and override a request header in Angular
I need to set a global http header to all my requests because of the authentication method that we are using. We have an Identity Server to authenticate the user using a SSO approach. So far so good, ...
0
votes
1answer
124 views
Angular $http Interceptor Opens Multiple Modals When Auth Fails
I am using the $http interceptor to show a login modal when $auth fails. Here is a brief set-up I have:
$provide.factory('modalWhenLoggedOut', ['$q', '$injector', '$rootScope',
function($q, ...
0
votes
0answers
232 views
ignoreAuthModule = true not behaving as expected in angular-http-auth
I have the very common use case of redirecting the user to login on session expiry. I am using angular-http-auth for the purpose. It stores all requests in httpBuffer that returned 401 and fires them ...
0
votes
0answers
217 views
AngularJS: get protected JSON with auth headers
I have a JSON file generated by the server and to access that JSON via URL within the browser I need to log in providing username and password.
Now I am trying to get that JSON with Angular, ...
0
votes
0answers
260 views
Using auth-http-interceptor to broadcast login-confirmed
I am using the auth-http-interceptor to broadcast login-confirmed. I have a main.html which is supposed to check whether the user is logged in.
<div class="auth-tripdelta" ...
0
votes
1answer
379 views
AngularJS Error Code 401 handling without interceptors?
Following is the code I use, I get the Authentication Success Alert if the basic auth succeeds but the else alert "Authentication failed" is never displayed when the credentials are wrong. I do not ...
3
votes
1answer
9k views
angularjs basic authentication headers
I'm trying to connect to API and send authentication headers.
I'm using Base64 as described here How do I get basic auth working in angularjs?
function Cntrl($scope, $http, Base64) {
...
1
vote
0answers
65 views
Restangular with angular-http-auth not working
I had been using Angular-HTTP-Auth with the basic http requests, but have since moved to Restangular and are now finding that 401's are no longer caught by HTTP-Auth. I'm assuming this is because the ...
3
votes
2answers
1k views
angular-http-auth with $http transformResponse
I'm using angular-http-auth to show a login dialog whenever a 401 "unauthorized" response is returned from the server.
Since I'm cool, I also try to deserialize response objects in my services. For ...
1
vote
0answers
694 views
Protractor sendKeys fails when using angular-http-auth to display login window
I am using angular-http-auth and the example from http://witoldsz.github.io/angular-http-auth/ to display my login form.
Here is the index.html page:
<!DOCTYPE html>
<html ng-app="rdx">
...
3
votes
1answer
2k views
Angularjs - Remove last history entry after $routeChangeError
I have a route which has to resolve a server side resource. That resource asks for authentication. So i show a login form popup which is cancelable. On cancel the route/resolve gets rejected and ...