Skip to content

Authentication in an AngularJS app through API (Restangular) and GoogleOAuth

Notifications You must be signed in to change notification settings

CommonsDev/angular-unisson-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use ?

It requires following rootScope variables to work:

$rootScope.homeStateName : the name of the state (depends on stateProvider service) to redirect after logout

In a app.config(), call 'loginServiceProvider' and use:

$loginServiceProvider.setBaseUrl(YOUR_BASE_URL)

YOUR_BASE_URL is the absolute base url of login API. E.g if "http://fuzzy.com/api/v0/ is given, service will attempt to login to "fuzzy.com/api/v0/account/user/login" and will provide credentials in the form of an object as { username:"myusername", password:"mypassword" }

Versions change

#0.1.7 Fixed an issue with angular-http-auth (witoldsz/angular-http-auth#25) where users who entered wrong credentials are always prompted for credentials, even after submitting right ones and being connected.

About

Authentication in an AngularJS app through API (Restangular) and GoogleOAuth

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •