Fork me on GitHub
Note: there is no need to enter any credentials.
 
Username
Password

HTTP Auth Interceptor Module Demo

for AngularJS

What is the purpose of this demo?

This demo application is to show you the implementation of the concept described in Authentication in AngularJS (or similar) based application.

This application does not talk to real server, it uses ngMockE2E module instead.

The HTTP Auth Interceptor module source code is available here:
https://github.com/witoldsz/angular-http-auth

The source code of this demo is available in the same project as a GitHub Pages branch here:
https://github.com/witoldsz/angular-http-auth/tree/gh-pages



 

Enter some data and submit to send and access public data.

Enter public data:

Server says: {{p}}



Enter some data and submit to send and access protected data.

Enter restricted data:

Server says: {{r}}



Press the button to log out.

The button will tell the server to forget about your session and also it will remove sensitive data from page.

In real application it could do something else like:

 


 
comments powered by Disqus