Documentation
¶
Index ¶
- func ExtractNamedCookie(cookieHeader string, targetName string) string
- func IsWebCookieProvider(provider string) bool
- func ParseJsonCookiesToHeader(raw string) (string, error)
- func StripCookieInputPrefix(raw string) string
- func WebSessionCredentialKey(psd map[string]interface{}) string
- type RawCookie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNamedCookie ¶
ExtractSessionCookie retrieves a specific named cookie from a header string or session string.
func IsWebCookieProvider ¶
IsWebCookieProvider reports whether the provider uses cookie/session authentication.
func ParseJsonCookiesToHeader ¶
ParseJsonCookiesToHeader converts raw JSON cookie export into standard "Cookie: name=val; name2=val2" header.
func StripCookieInputPrefix ¶
StripCookieInputPrefix trims leading Bearer or Cookie: labels from user input.
func WebSessionCredentialKey ¶
WebSessionCredentialKey extracts a comparable secret token from providerSpecificData.
Types ¶
type RawCookie ¶
type RawCookie struct {
Name string `json:"name"`
Value string `json:"value"`
Domain string `json:"domain,omitempty"`
Path string `json:"path,omitempty"`
Expires any `json:"expires,omitempty"`
HttpOnly bool `json:"httpOnly,omitempty"`
Secure bool `json:"secure,omitempty"`
SameSite string `json:"sameSite,omitempty"`
}
RawCookie represents a cookie entry exported by standard DevTools or browser extensions.