2024-09-26 09:06:17 +00:00
|
|
|
package auth
|
2024-09-12 17:39:24 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2024-09-13 21:41:29 +00:00
|
|
|
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")
|
2024-09-15 18:42:07 +00:00
|
|
|
ErrCantGetUserInfo = errors.New("cant get user info")
|
|
|
|
ErrCreateRequestForUserInfo = errors.New("cant create request for get user")
|
2024-11-19 22:04:07 +00:00
|
|
|
ErrUserNeedRedirect = errors.New("user need to login at oauth server")
|
2024-09-12 17:39:24 +00:00
|
|
|
)
|