Documentation ¶
Index ¶
- Variables
- func NewFactory() auth.IAuthFactory
- func Register()
- type Config
- type DiscoveryConfig
- type IVerifyClaim
- type IssuerConfig
- type JWK
- type JWKs
- type Manager
- func (m *Manager) Del(id string)
- func (m *Manager) DelIssuerIDMap(appID string) (map[string]struct{}, bool)
- func (m *Manager) GetIssuerIDMap(appID string) map[string]struct{}
- func (m *Manager) Set(id string, config *IssuerConfig)
- func (m *Manager) SetIssuerIDMap(appID string, issuerIDMap map[string]struct{})
- type Pattern
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidToken = errors.New("invalid token")
)
Functions ¶
Types ¶
type Config ¶
type Config struct { application.Auth Users []*User `json:"users" label:"用户列表"` }
type DiscoveryConfig ¶
type DiscoveryConfig struct { TokenEndpoint string `json:"token_endpoint"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"` JwksUri string `json:"jwks_uri"` ResponseModesSupported []string `json:"response_modes_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"` ResponseTypesSupported []string `json:"response_types_supported"` ScopesSupported []string `json:"scopes_supported"` Issuer string `json:"issuer"` MicrosoftMultiRefreshToken bool `json:"microsoft_multi_refresh_token"` AuthorizationEndpoint string `json:"authorization_endpoint"` DeviceAuthorizationEndpoint string `json:"device_authorization_endpoint"` HttpLogoutSupported bool `json:"http_logout_supported"` FrontchannelLogoutSupported bool `json:"frontchannel_logout_supported"` EndSessionEndpoint string `json:"end_session_endpoint"` ClaimsSupported []string `json:"claims_supported"` CheckSessionIframe string `json:"check_session_iframe"` UserinfoEndpoint string `json:"userinfo_endpoint"` KerberosEndpoint string `json:"kerberos_endpoint"` TenantRegionScope string `json:"tenant_region_scope"` CloudInstanceName string `json:"cloud_instance_name"` CloudGraphHostName string `json:"cloud_graph_host_name"` MsgraphHost string `json:"msgraph_host"` RbacUrl string `json:"rbac_url"` }
type IVerifyClaim ¶
type IVerifyClaim interface {
Verify(obj interface{}) error
}
type IssuerConfig ¶
type Manager ¶
type Manager struct { Issuers eosc.Untyped[string, *IssuerConfig] Apps eosc.Untyped[string, map[string]struct{}] }
func NewManager ¶
func NewManager() *Manager
func (*Manager) DelIssuerIDMap ¶
func (*Manager) GetIssuerIDMap ¶
func (*Manager) Set ¶
func (m *Manager) Set(id string, config *IssuerConfig)
func (*Manager) SetIssuerIDMap ¶
Click to show internal directories.
Click to hide internal directories.