sso

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conf    dto.AppConf
	SsoConf dto.SsoConf
}

func (*Client) JsConfig

func (s *Client) JsConfig(url string) (dto.JsConfigResponse, error)

JsConfig -

func (*Client) Ticket

func (s *Client) Ticket() (dto.TicketResponse, error)

Ticket -

func (*Client) Verify

func (s *Client) Verify(token string) (dto.SsoVerifyResponse, error)

Verify -

type SsoInterface

type SsoInterface interface {
	Verify(token string) (dto.SsoVerifyResponse, error)
	JsConfig(url string) (dto.JsConfigResponse, error)
	Ticket() (dto.TicketResponse, error)
}

func NewSsoClient

func NewSsoClient(conf dto.AppConf, ssoConf dto.SsoConf) SsoInterface

Jump to

Keyboard shortcuts

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