package
0.6.3
Repository: https://github.com/shisa-platform/core.git
Documentation: pkg.go.dev

# Functions

AuthenticationHeaderTokenExtractor returns the token from the "Authentication" header.
BasicAuthTokenExtractor returns the decoded credentials from a Basic Authentication challenge.
NewAuthenticator returns an authenticator using the given token extractor and identity provider.
NewAuthenticatorAuthenticateInvocation creates a new instance of AuthenticatorAuthenticateInvocation.
NewBasicAuthenticator returns an authenticator implementing Basic Access Authentication as specified in RFC 7617.
NewBearerAuthenticatior returns an authenticator implementing Bearer Access Authentication as specified in RFC 7617.
NewFakeAuthenticatorDefaultError returns an instance of FakeAuthenticator with all hooks configured to call t.Error.
NewFakeAuthenticatorDefaultFatal returns an instance of FakeAuthenticator with all hooks configured to call t.Fatal.
NewFakeAuthenticatorDefaultPanic returns an instance of FakeAuthenticator with all hooks configured to panic.
NewFakeIdentityProviderDefaultError returns an instance of FakeIdentityProvider with all hooks configured to call t.Error.
NewFakeIdentityProviderDefaultFatal returns an instance of FakeIdentityProvider with all hooks configured to call t.Fatal.
NewFakeIdentityProviderDefaultPanic returns an instance of FakeIdentityProvider with all hooks configured to panic.
NewIdentityProviderAuthenticateInvocation creates a new instance of IdentityProviderAuthenticateInvocation.
URLTokenExtractor returns the credentials from the request URL concatenated together with a colon as specified in RFC 7617.

# Constants

No description provided by the author

# Structs

AuthenticatorAuthenticateInvocation represents a single call of FakeAuthenticator.Authenticate.
AuthenticatorChallengeInvocation represents a single call of FakeAuthenticator.Challenge.
FakeAuthenticator is a mock implementation of Authenticator for testing.
FakeIdentityProvider is a mock implementation of IdentityProvider for testing.
IdentityProviderAuthenticateInvocation represents a single call of FakeIdentityProvider.Authenticate.

# Interfaces

Authenticator defines a provder for authenticating the principal of a request.
AuthenticatorTestingT represents the methods of "testing".T used by charlatan Fakes.
IdentityProvider is a service that resolves tokens into principals.
IdentityProviderTestingT represents the methods of "testing".T used by charlatan Fakes.