auth/errors.go

15 lines
749 B
Go

package auth
import "errors"
var (
ErrCantGetConfiguratorData = errors.New("cant get data from configurator url")
ErrCantGetAuthorizationURL = errors.New("cant get url to recirect user to")
ErrCantCreateTokenRequests = errors.New("cant create requesats to get token with code")
ErrCantSendRequestsForToken = errors.New("cant send requests for token with code")
ErrCantGetTokenForCode = errors.New("cant get oauth token with code")
ErrWrongResponseFromServer = errors.New("cant get access token from server")
ErrCantGetUserInfo = errors.New("cant get user info")
ErrCreateRequestForUserInfo = errors.New("cant create request for get user")
ErrUserNeedRedirect = errors.New("user need to login at oauth server")
)