1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

refactor(ouath): use oauth2 library to get token

This commit is contained in:
Chaim Lev Ari 2019-01-18 10:56:16 +02:00
parent 60040e90d0
commit 46e8f10aea
3 changed files with 18 additions and 93 deletions

View file

@ -766,7 +766,7 @@ type (
OAuthService interface {
GetAccessToken(code string, settings *OAuthSettings) (string, error)
GetUsername(token string, settings *OAuthSettings) (string, error)
BuildLoginURL(oauthSettings OAuthSettings) string
BuildLoginURL(oauthSettings *OAuthSettings) string
}
// SwarmStackManager represents a service to manage Swarm stacks