Documentation ¶
Overview ¶
Package security creates valid user objects for the system Starter code credit to: github.com/mura123yasu/go-cognito@master:6/1/2019 (base starter) Updated to remove region checks - pull and check from the JWT itself instead Updated to add JWK cache - will enable refresh in future, I don't think AWS rotates yet Updated to remove redundant checks with the JWT library Changed the order significantly so that it can self serve in library Modified to be more consistent within this overall frameowrk (more work to do here later: future)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAnonymous ¶
IsAnonymous - if security context is not set or user is empty or the string anonymousit will return true/ not logged in
func SetupAuthFromHTTP ¶
SetupAuthFromHTTP - Enables Auth for later retrieval in the request flow, value added to returned Context
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
BasicAuth - authentication data holder
func (*BasicAuth) GetAuthHeader ¶
GetAuthHeader - returns the Authorization Header associated with this request if http request