Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "casdoor", Short: "A clean and straightforward command line interface for Casdoor.", Long: emoji.Sprintf(`:rocket: Casdoor CLI Casdoor CLI allows you to perform various operations using Casdoor's Public API such as: - User management - Permissions management `), }
Functions ¶
func OAuthHandler ¶
func OAuthHandler(casdoorConfig *models.CasdoorConfig) ([]byte, error)
OAuthHandler handles the OAuth process for the given Casdoor configuration.
It takes a CasdoorConfig pointer as a parameter and returns a byte slice and an error.
func ParseOAuthResponse ¶
ParseOAuthResponse parses the OAuth response data into a TokenData struct.
Parameter:
data []byte - the OAuth response data to be parsed
Return:
*models.TokenData - the parsed TokenData struct error - an error, if any, during the parsing process
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.