Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

I have AngularJS website which contains few hyperlink. Whenever I try to open the link in same tab then it is working fine but whenever I try to open the link in new tab then it is redirecting me to ...
simple user's user avatar
2 votes
0 answers
563 views

What do you think about this approach using web worker for angular login/auth it looks good at me and in this way you can get rid of $rootScope event as well :) This is just an example in a more ...
Whisher's user avatar
  • 32.9k
0 votes
7 answers
18k views

I have an angularjs web application. I am trying not to allow users to go to previous page using browser back button after logout. I wish to show users a messge like "Please login to continue". I am ...
pratham gn's user avatar
2 votes
1 answer
150 views

I am trying to build an AngularJS frontend for a Drupal 7 website. The problem is that, when I set useCredentails to true, I get this error. Cross-Origin Request Blocked: The Same Origin Policy ...
Muhammad Reda's user avatar
1 vote
1 answer
1k views

When using the resolves in ui-router, is it possible to have something resolve first (an authentication check for example) before the other resolves on a state are even started? This is an example of ...
JDWardle's user avatar
  • 923
1 vote
1 answer
1k views

I want to make a request to the twitter api and get the current logged in userfeed. I tryed the twitter api with "apigee" and everything works fine. Even when copying the Authorization header from "...
kevj's user avatar
  • 55
0 votes
2 answers
2k views

I have created a angularJS application with yeoman, grunt and bower. I have tried a simple login example. After loggin in, it will goto home page. And for any route changes it will check for whether ...
Coder's user avatar
  • 7,096
133 votes
10 answers
226k views

I have an AngularJS application created by using yeoman, grunt and bower. I have a login page that has a controller that checks for authentication. If the credentials are correct I reroute to home ...
iCode's user avatar
  • 9,282
68 votes
4 answers
87k views

I started developing a web-app with angularJS and I'm not sure that everything is right secured (client and server side). Security is based on a single login page, if credentials are checked ok, my ...
StarsSky's user avatar
  • 6,699
6 votes
4 answers
33k views

I'm trying to create basic validation whether user can access some route or not. I had progress in that, but there's one thing that I can't figure out. I'm using $locationChangeStart to monitor route ...
Ned's user avatar
  • 4,181
0 votes
1 answer
937 views

I'm playing around with the code of http://ngmodules.org/modules/http-auth-interceptor and I'm wondering why $rootScope.$broadcast('loginRequired'); doesn't trigger the alert in the controller $...
Whisher's user avatar
  • 32.9k
17 votes
5 answers
42k views

I wish to create a simple authentication check for my routes by external service. I define the access requirements on the route object: $routeProvider .when('/', { templateUrl: 'src/app/...
Almog Baku's user avatar
17 votes
1 answer
11k views

I'm pretty new to Angular, and right now I'm just trying to get all my routes set up and working as I'd like. Setup: When a user navigates to certain pages (/settings for this example) the app should ...
Lucy Bain's user avatar
  • 2,626
2 votes
3 answers
5k views

My app has 2 pages: main.html and login.html. When not authenticated users go to /main they should be redirected to /login. The problem is that main.html is rendered first, and after a second or so, ...
Misha Moroshko's user avatar
4 votes
3 answers
6k views

I would like to add an authentication mechanism to my AngularJS app with Firebase backend. The requirements are simple: Authenticated users should be able to access any page. If unauthenticated users ...
Misha Moroshko's user avatar