Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// The url pointing to API definition (normally swagger.json or swagger.yaml).
URL string `mapstructure:"url"`
DocExpansion string `mapstructure:"doc_expansion"`
DomID string `mapstructure:"dom_id"`
InstanceName string `mapstructure:"instance_name"`
DeepLinking *bool `mapstructure:"deep_linking"`
PersistAuthorization bool `mapstructure:"persist_authorization"`
SyntaxHighlight *bool `mapstructure:"syntax_highlight"`
// The information for OAuth2 integration, if any.
OAuth *OAuthConfig `mapstructure:"oauth"`
}
type OAuthConfig ¶
type OAuthConfig struct {
// The ID of the client sent to the OAuth2 IAM provider.
ClientId string `mapstructure:"client_id"`
// The OAuth2 realm that the client should operate in. If not applicable, use empty string.
Realm string `mapstructure:"realm"`
// The name to display for the application in the authentication popup.
AppName string `mapstructure:"app_name"`
}
OAuthConfig stores configuration for Config UI OAuth2 integration. See https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/ for further details.
Click to show internal directories.
Click to hide internal directories.