# Packages
No description provided by the author
# Functions
Authentication provides a SecurityContextOptions that sets the authentication to the given value.
BindMockingProperties is a FX provider that bind all mocked properties as MockingProperties.
No description provided by the author
ContextWithSecurity set given SecurityContextOptions in the given context, returning the new context.
MockedAuthentication provides a SecurityContextOptions that sets the authentication to a mocked oauth2.Authentication.
MockedPropertiesBinder returns a FX provider that bind specific mocked properties type from the properties sub-section specified by "prefix".
No description provided by the author
MWCondition returns option for WithMockedMiddleware.
MWCustomConfigurer returns option for WithMockedMiddleware.
MWCustomMocker returns option for WithMockedMiddleware.
MWEnableSession returns option for WithMockedMiddleware.
MWForceOverride returns option for WithMockedMiddleware.
MWForcePreOAuth2AuthValidation returns option for WithMockedMiddleware.
MWRoute returns option for WithMockedMiddleware.
NewMockAuthenticationMiddleware Deprecated, directly set MWMocker field with MWMocker interface or MWMockFunc, Recommended to use WithMockedMiddleware test options.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMockedMW Standard security.Feature entrypoint, DSL style.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMockedTokenStoreReader create a mocked oauth2.TokenStoreReader based on properties, The returned reader also implements MockedTokenRevoker.
No description provided by the author
ProvideScopeMocks is for internal usage.
No description provided by the author
No description provided by the author
WithMockedMiddleware is a test option that automatically install a middleware that populate/save security.Authentication into gin.Context.
WithMockedScopes is a test.Options that initialize github.com/cisco-open/go-lanai/pkg/integrate/security/scope This option configure mocked security scopes based on yaml provided as embed.FS.
WithMockedSecurity used to mock an oauth2.Authentication in the given context, returning a new context Deprecated: use ContextWithSecurity(ctx, MockedAuthentication(opts...)) instead.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
DirectExtractionMWMocker is an MWMocker that extracts authentication from context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockedSecurityDetails implements - security.AuthenticationDetails - security.ProxiedUserDetails - security.UserDetails - security.TenantDetails - security.ProviderDetails - security.KeyValueDetails - internal.TenantAccessDetails.
No description provided by the author
No description provided by the author
No description provided by the author
MockedToken implements oauth2.AccessToken.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MWMockContext value carrier for mocking authentication in MW.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
MWMocker interface that mocked authentication middleware uses to mock authentication at runtime.
# Type aliases
No description provided by the author
MockedAccountModifier works with MockAccountStore.
No description provided by the author
No description provided by the author
MWMockFunc wrap a function to MWMocker interface.
No description provided by the author
No description provided by the author
No description provided by the author