Documentation ¶
Index ¶
- type Bank
- type IBankListDto
- type JWTClaims
- type OauthAccessToken
- func CreateGrantTypeClientCredentials(clientId uuid.UUID, scopes []string, expiresAt time.Time) (*OauthAccessToken, errors.DomainError)
- func CreateOauthAccessToken(userId *uuid.UUID, clientId uuid.UUID, grantType string, scopes []string, ...) (*OauthAccessToken, errors.DomainError)
- func NewOauthAccessTokenEntity(id uuid.UUID, userId *uuid.UUID, grantType string, clientId uuid.UUID, ...) (*OauthAccessToken, errors.DomainError)
- func (oauth *OauthAccessToken) ClientId() uuid.UUID
- func (oauth *OauthAccessToken) CreatedAt() time.Time
- func (oauth *OauthAccessToken) ExpiresAt() time.Time
- func (oauth *OauthAccessToken) GrantType() string
- func (oauth *OauthAccessToken) Id() *uuid.UUID
- func (oauth *OauthAccessToken) RevokedAt() *time.Time
- func (oauth *OauthAccessToken) Scopes() []string
- func (oauth *OauthAccessToken) UpdatedAt() time.Time
- func (oauth *OauthAccessToken) UserId() *uuid.UUID
- type OauthAuthCode
- type OauthClient
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBankListDto ¶
type IBankListDto interface {
Validate() error
}
func NewBankListDTO ¶
func NewBankListDTO() IBankListDto
type JWTClaims ¶
type JWTClaims struct {
// contains filtered or unexported fields
}
func NewJwtClaim ¶
func (*JWTClaims) Generate ¶
func (jwtClaim *JWTClaims) Generate() (*string, domainErrors.DomainError)
func (*JWTClaims) GetExpiresAt ¶
type OauthAccessToken ¶
type OauthAccessToken struct {
// contains filtered or unexported fields
}
func CreateGrantTypeClientCredentials ¶
func CreateGrantTypeClientCredentials( clientId uuid.UUID, scopes []string, expiresAt time.Time, ) (*OauthAccessToken, errors.DomainError)
func CreateOauthAccessToken ¶
func (*OauthAccessToken) ClientId ¶
func (oauth *OauthAccessToken) ClientId() uuid.UUID
func (*OauthAccessToken) CreatedAt ¶
func (oauth *OauthAccessToken) CreatedAt() time.Time
func (*OauthAccessToken) ExpiresAt ¶
func (oauth *OauthAccessToken) ExpiresAt() time.Time
func (*OauthAccessToken) GrantType ¶
func (oauth *OauthAccessToken) GrantType() string
func (*OauthAccessToken) Id ¶
func (oauth *OauthAccessToken) Id() *uuid.UUID
func (*OauthAccessToken) RevokedAt ¶
func (oauth *OauthAccessToken) RevokedAt() *time.Time
func (*OauthAccessToken) Scopes ¶
func (oauth *OauthAccessToken) Scopes() []string
func (*OauthAccessToken) UpdatedAt ¶
func (oauth *OauthAccessToken) UpdatedAt() time.Time
func (*OauthAccessToken) UserId ¶
func (oauth *OauthAccessToken) UserId() *uuid.UUID
type OauthAuthCode ¶
type OauthAuthCode struct {
// contains filtered or unexported fields
}
func CreateOauthCode ¶
func CreateOauthCode( userId uuid.UUID, clientId uuid.UUID, scopes []string, expiresAt time.Time, ) (*OauthAuthCode, domainErrors.DomainError)
func NewOauthAuthCode ¶
func NewOauthAuthCode( id uuid.UUID, userId uuid.UUID, clientId uuid.UUID, scopes []string, expiresAt time.Time, timestamps valueObjects.TimestampValueObject, ) *OauthAuthCode
type OauthClient ¶
type OauthClient struct { ID uuid.UUID `json:"id"` Name string `json:"name"` EnabledGrantType []string `json:"enabled_grant_type"` Secret string `json:"secret"` Redirect string `json:"redirect"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` }
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func NewToken ¶
func NewToken( id uuid.UUID, tokenType string, expiresIn time.Time, accessToken string, refreshToken *string, ) (*Token, domainErrors.DomainError)
func (*Token) AccessToken ¶
func (*Token) MarshalJSON ¶
func (*Token) RefreshToken ¶
Click to show internal directories.
Click to hide internal directories.