Access HTTP Headers while loading the AngularJS Application -
i working on new application using angualarjs framework. user authentication, using cleartrust authentication validating user credentials. once application url accessed navigates clear trust login page , when clicks on login button validate user , once it’s valid user navigates start page “index.html” clear trust passes http headers contains user information’s userid, email, working location, etc. question is, when app.js file loaded how can access http header app.js file? require http header while loading application. me how access http headers?
example scenario is, using facebook login application authenticate user. while accessing url (mysite.com/index.html) should navigate facebook login , allow user login his/her credentials. once validated redirected index.html (which startup page app in mysite.com). here in app.js need access user name, user display name, country, etc (say user information details) header.
Comments
Post a Comment