Merge branch 'oath-poc' of github.com:portainer/pportainer into oath-poc

pull/2749/head
Chaim Lev Ari 2019-01-16 17:26:29 +02:00
commit 317bd53e43
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
var user = {};
service.init = init;
service.oAuthLogin = oAuthLogin;
service.OAuthLogin = OAuthLogin;
service.login = login;
service.logout = logout;
service.isAuthenticated = isAuthenticated;
@ -22,7 +22,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
}
}
function oAuthLogin(code) {
function OAuthLogin(code) {
return OAuth.login({ code: code }).$promise
.then(function onLoginSuccess(response) {
return setUser(response.jwt);