Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "2.2.2"
Variables ¶
This section is empty.
Functions ¶
func AsServerError ¶
func AsServerError(err error) *servererror.ServerError
AsServerError casts given error into a ServerError, if possible
func AsValidationError ¶
func AsValidationError(err error) *validationerror.ValidationError
AsValidationError casts given error into a ValidationError, if possible
func IsServerError ¶
IsServerError checks if given error is a ServerError
func IsValidationError ¶
IsValidationError checks if given error is a ValidationError
func NewLoggingClientOption ¶
func NewLoggingClientOption() api.ClientOption
NewLoggingClientOption enhances HTTP client to log requests/responses
Types ¶
type Config ¶
type Config struct {
ProjectID string
APISecret string
FrontendAPI string
BackendAPI string
CacheMaxAge time.Duration
JWKSRefreshInterval time.Duration
JWKSRefreshRateLimit time.Duration
JWKSRefreshTimeout time.Duration
HTTPClient *http.Client
ExtraClientOptions []api.ClientOption
}
func NewConfig ¶
func NewConfig(projectID string, apiSecret string, frontendAPI string, backendAPI string) (*Config, error)
NewConfig returns new config with sane defaults
func NewConfigFromEnv ¶
NewConfigFromEnv created new config be reading the following environment variables: CORBADO_PROJECT_ID, CORBADO_API_SECRET, CORBADO_FRONTEND_API and CORBADO_BACKEND_API
type Impl ¶
func (*Impl) Identifiers ¶
func (i *Impl) Identifiers() identifier.Identifier
Identifiers returns identifiers client
type SDK ¶
type SDK interface {
Sessions() session.Session
Users() user.User
Identifiers() identifier.Identifier
}
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
basic
command
|
|
|
stdlib/identifier
command
|
|
|
stdlib/user
command
|
|
|
internal
|
|
|
pkg
|
|
|
generated/api
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
generated/common
Package common provides primitives to interact with the openapi HTTP API.
|
Package common provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.