oauthapp

package
v0.0.0-...-d125d34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APPBasicInfo

type APPBasicInfo struct {
	AppID       uint      `json:"appID"`
	AppName     string    `json:"appName"`
	Desc        string    `json:"desc"`
	HomeURL     string    `json:"homeURL"`
	ClientID    string    `json:"clientID"`
	RedirectURL string    `json:"redirectURL"`
	UpdatedBy   uint      `json:"updatedBy"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type Controller

type Controller interface {
	Create(ctx context.Context, groupID uint, request CreateOauthAPPRequest) (*APPBasicInfo, error)
	Get(ctx context.Context, clientID string) (*APPBasicInfo, error)
	List(ctx context.Context, groupID uint) ([]APPBasicInfo, error)
	Update(ctx context.Context, info APPBasicInfo) (*APPBasicInfo, error)
	Delete(ctx context.Context, clientID string) error

	CreateSecret(ctx context.Context, clientID string) (*SecretBasic, error)
	DeleteSecret(ctx context.Context, ClientID string, clientSecretID uint) error
	ListSecret(ctx context.Context, ClientID string) ([]SecretBasic, error)
}

func NewController

func NewController(param *param.Param) Controller

type CreateOauthAPPRequest

type CreateOauthAPPRequest struct {
	Name        string `json:"name"`
	Desc        string `json:"desc"`
	HomeURL     string `json:"homeURL"`
	RedirectURL string `json:"redirectURL"`
}

type SecretBasic

type SecretBasic struct {
	ID           uint      `json:"id"`
	ClientID     string    `json:"clientID"`
	ClientSecret string    `json:"clientSecret"`
	CreatedAt    time.Time `json:"createdAt"`
	CreatedBy    string    `json:"createdBy"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL