mirror of https://github.com/portainer/portainer
Merge branch 'oath-poc' of github.com:portainer/pportainer into oath-poc
commit
317bd53e43
|
@ -8,7 +8,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
|
||||||
var user = {};
|
var user = {};
|
||||||
|
|
||||||
service.init = init;
|
service.init = init;
|
||||||
service.oAuthLogin = oAuthLogin;
|
service.OAuthLogin = OAuthLogin;
|
||||||
service.login = login;
|
service.login = login;
|
||||||
service.logout = logout;
|
service.logout = logout;
|
||||||
service.isAuthenticated = isAuthenticated;
|
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
|
return OAuth.login({ code: code }).$promise
|
||||||
.then(function onLoginSuccess(response) {
|
.then(function onLoginSuccess(response) {
|
||||||
return setUser(response.jwt);
|
return setUser(response.jwt);
|
||||||
|
|
Loading…
Reference in New Issue