1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 22:05:23 +02:00

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

This commit is contained in:
Chaim Lev Ari 2019-01-16 17:26:29 +02:00
commit 317bd53e43

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);