MSP-8520 rename sudir to oauth
This commit is contained in:
1 parent
c32459f73d
commit
5bd389757c
23 files changed
+254
-252
No files matched your search
@@ -12,18 +12,18 @@ type ClientSetting struct {
|
||||
}
|
||||
|
||||
// nolint:tagliatelle,godoclint
|
||||
type SudirAuthError struct {
|
||||
type OauthAuthError struct {
|
||||
ErrorName string `json:"error"`
|
||||
ErrorDescription string `json:"error_description"`
|
||||
}
|
||||
|
||||
func (s *SudirAuthError) Error() string {
|
||||
func (s *OauthAuthError) Error() string {
|
||||
return fmt.Sprintf("error: %s; description: %s", s.ErrorName, s.ErrorDescription)
|
||||
}
|
||||
|
||||
// nolint:tagliatelle,errname,godoclint
|
||||
type SudirUserResponse struct {
|
||||
*SudirAuthError
|
||||
type OauthUserResponse struct {
|
||||
*OauthAuthError
|
||||
|
||||
Email string `json:"email"`
|
||||
Groups []string `json:"groups"`
|
||||
@@ -34,8 +34,8 @@ type SudirUserResponse struct {
|
||||
}
|
||||
|
||||
// nolint:tagliatelle,errname,godoclint
|
||||
type SudirTokenResponse struct {
|
||||
*SudirAuthError
|
||||
type OauthTokenResponse struct {
|
||||
*OauthAuthError
|
||||
|
||||
IdToken string `json:"id_token"`
|
||||
AccessToken string `json:"access_token"`
|
||||
+3
-3
@@ -3,7 +3,7 @@ package entity
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
SudirUserId *string
|
||||
OauthUserId *string
|
||||
Id int64
|
||||
FirstName string
|
||||
LastName string
|
||||
@@ -18,9 +18,9 @@ type User struct {
|
||||
LastSessionCreatedAt *time.Time
|
||||
}
|
||||
|
||||
type SudirUser struct {
|
||||
type OauthUser struct {
|
||||
RoleIds []int
|
||||
SudirUserId string
|
||||
OauthUserId string
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string
|
||||
|
||||
Reference in new issue
Block a user