hydra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHydraImageName specifies the Hydra docker image name to use in tests.
	DefaultHydraImageName = "oryd/hydra"
	// DefaultHydraEnvVarImageName is the environment variable name for default Hydra docker image name.
	DefaultHydraEnvVarImageName = "TEST_ORY_HYDRA_IMAGE_NAME"
	// DefaultHydraImageVersion specifies the Hydra docker image version to use in tests.
	DefaultHydraImageVersion = "v1.10.1"
	// DefaultHydraEnvVarImageVersion is the environment variable name for default Hydra docker image version.
	DefaultHydraEnvVarImageVersion = "TEST_ORY_HYDRA_IMAGE_VERSION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateClientArguments

type CreateClientArguments struct {
	AllowedCorsOrigins                []string               `json:"allowed_cors_origins,omitempty"`
	Audience                          []string               `json:"audience,omitempty"`
	BackchannelLogoutSessionRequired  *bool                  `json:"backchannel_logout_session_required,omitempty"`
	BackchannelLogoutURI              *string                `json:"backchannel_logout_uri,omitempty"`
	ClientID                          *string                `json:"client_id,omitempty"`
	ClientName                        *string                `json:"client_name,omitempty"`
	ClientSecret                      *string                `json:"client_secret,omitempty"`
	ClientSecretExpireAt              *int64                 `json:"client_secret_expires_at,omitempty"`
	ClientURI                         *string                `json:"client_uri,omitempty"`
	Contacts                          []string               `json:"contacts,omitempty"`
	CreatedAt                         *string                `json:"created_at,omitempty"`
	FrontchannelLogoutSessionRequired *bool                  `json:"frontchannel_logout_session_required,omitempty"`
	FrontchannelLogoutURI             *string                `json:"frontchannel_logout_uri,omitempty"`
	GrantTypes                        []string               `json:"grant_types,omitempty"`
	JWKS                              map[string]interface{} `json:"jwks,omitempty"`
	JWKSURI                           *string                `json:"jwks_uri,omitempty"`
	LogoURI                           *string                `json:"logo_uri,omitempty"`
	Metadata                          map[string]interface{} `json:"metadata,omitempty"`
	Owner                             *string                `json:"owner,omitempty"`
	PolicyURI                         *string                `json:"policy_uri,omitempty"`
	PostLogoutRedirectURIs            []string               `json:"post_logout_redirect_uris,omitempty"`
	RedirectURIs                      []string               `json:"redirect_uris,omitempty"`
	RequestObjectSigningAlg           *string                `json:"request_object_signing_alg,omitempty"`
	RequestURIs                       []string               `json:"request_uris,omitempty"`
	ResponseTypes                     []string               `json:"response_types,omitempty"`
	Scope                             *string                `json:"scope,omitempty"`
	SectorIdentifierURI               *string                `json:"sector_identifier_uri,omitempty"`
	SubjectType                       *string                `json:"subject_type,omitempty"`
	TokenEndpointAuthMethod           *string                `json:"token_endpoint_auth_method,omitempty"`
	TokenEndpointAuthSigningAlg       *string                `json:"token_endpoint_auth_signing_alg,omitempty"`
	TOSURI                            *string                `json:"tos_uri,omitempty"`
	UpdatedAt                         *string                `json:"updated_at,omitempty"`
	UserinfoSignedResponseAlg         *string                `json:"userinfo_signed_response_alg,omitempty"`
}

CreateClientArguments defines arguments for creating new Hydra OIDC client.

type TestEnvContext

type TestEnvContext interface {
	Pool() *dockertest.Pool
	PublicPort() string
	AdminPort() string
	Cleanup()
}

TestEnvContext represents a test hydra environment context.

func SetupTestHydra

func SetupTestHydra(t *testing.T, postgresCtx postgres.TestEnvContext) TestEnvContext

SetupTestHydra sets up hydra environment for tests.

Jump to

Keyboard shortcuts

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