Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResponse ¶
type CheckResponse struct {
Allowed bool `json:"allowed"`
}
type Method ¶
type OpenFGACheck ¶
type OpenFGACheck struct { OpenFGACheckAPI string `cfg:"openfga_check_api"` OpenFGAUserAPI string `cfg:"openfga_user_api"` OpenFGAModelID string `cfg:"openfga_model_id"` Operation Operation `cfg:"operation"` InsecureSkipVerify bool `cfg:"insecure_skip_verify"` // contains filtered or unexported fields }
func (*OpenFGACheck) Middleware ¶
func (m *OpenFGACheck) Middleware(_ context.Context, _ string) (echo.MiddlewareFunc, error)
type Parse ¶
type Parse struct { // Enable to enable the Parse check. Enable bool `cfg:"enable"` // APINameRgx to extract name of the api. APINameRgx string `cfg:"api_name_rgx"` APINameReplacement string `cfg:"api_name_replacement"` ObjectName string `cfg:"object_name"` // Method match with relation. Method Method `cfg:"method"` // DefaultUserClaim claim to extract user alias from token. DefaultUserClaim string `cfg:"default_user_claim"` ProviderUserClaim map[string]string `cfg:"provider_user_claim"` }
type UserResponse ¶
type UserResponse struct {
ID string `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.