AuthenticateWithCode authenticates with EGS using an authorization code
(authCode string)
| 85 | |
| 86 | // AuthenticateWithCode authenticates with EGS using an authorization code |
| 87 | func (e *EGS) AuthenticateWithCode(authCode string) (*TokenResponse, error) { |
| 88 | return e.requestToken(map[string]string{ |
| 89 | "grant_type": "authorization_code", |
| 90 | "code": authCode, |
| 91 | "token_type": "eg1", |
| 92 | }) |
| 93 | } |
| 94 | |
| 95 | // AuthenticateWithRefreshToken authenticates with EGS using a refresh token |
| 96 | func (e *EGS) AuthenticateWithRefreshToken(refreshToken string) (*TokenResponse, error) { |
no test coverage detected