core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 Callback

type Callback struct {
	// contains filtered or unexported fields
}

func NewCallback

func NewCallback(config *config.Callback, mux *http.ServeMux) *Callback

func (*Callback) Handle

func (c *Callback) Handle()

type Client

type Client struct {
	*casdoorsdk.Client
}

func NewClient

func NewClient(config *Config) *Client

type Config

type Config struct {
	Endpoint     string           `json:"endpoint,omitempty" yaml:"endpoint" xml:"endpoint" toml:"endpoint" validate:"required,url"`
	Id           string           `json:"id,omitempty" yaml:"id" xml:"id" toml:"id" validate:"required,url"`
	Secret       string           `json:"secret,omitempty" yaml:"secret" xml:"secret" toml:"secret" validate:"required,url"`
	Certificate  string           `json:"certificate,omitempty" yaml:"certificate" xml:"certificate" toml:"certificate" validate:"required,url"`
	Organization string           `json:"organization,omitempty" yaml:"organization" xml:"organization" toml:"organization" validate:"required,url"`
	Application  string           `json:"application,omitempty" yaml:"application" xml:"application" toml:"application" validate:"required,url"`
	Callback     *config.Callback `json:"serve,omitempty" yaml:"serve" xml:"serve" toml:"serve"`
}

Jump to

Keyboard shortcuts

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