Documentation ¶
Overview ¶
Package odrvcookie can fetch authentication cookies for a sharepoint webdav endpoint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieAuth ¶
type CookieAuth struct {
// contains filtered or unexported fields
}
CookieAuth hold the authentication information These are username and password as well as the authentication endpoint
func (*CookieAuth) Cookies ¶
func (ca *CookieAuth) Cookies(ctx context.Context) (*CookieResponse, error)
Cookies creates a CookieResponse. It fetches the auth token and then retrieves the Cookies
type CookieRenew ¶
type CookieRenew struct {
// contains filtered or unexported fields
}
CookieRenew holds information for the renew
func NewRenew ¶
func NewRenew(interval time.Duration, renewFn func()) *CookieRenew
NewRenew returns and starts a CookieRenew
type CookieResponse ¶
CookieResponse contains the requested cookies
type ErrorResponseBody ¶ added in v1.50.0
type ErrorResponseBody struct { XMLName xml.Name FaultCode string `xml:"Fault>Code>Subcode>Value"` Reason string `xml:"Fault>Reason>Text"` Detail string `xml:"Fault>Detail>error>internalerror>text"` }
ErrorResponseBody contains the body of a erroneous repsonse
type SharepointError ¶ added in v1.50.0
type SharepointError struct {}
SharepointError holds a error response microsoft login
func (*SharepointError) Error ¶ added in v1.50.0
func (e *SharepointError) Error() string
type SharepointSuccessResponse ¶ added in v1.50.0
type SharepointSuccessResponse struct {}
SharepointSuccessResponse holds a response from a successful microsoft login
type SuccessResponseBody ¶
type SuccessResponseBody struct { XMLName xml.Name Type string `xml:"RequestSecurityTokenResponse>TokenType"` Created time.Time `xml:"RequestSecurityTokenResponse>Lifetime>Created"` Expires time.Time `xml:"RequestSecurityTokenResponse>Lifetime>Expires"` Token string `xml:"RequestSecurityTokenResponse>RequestedSecurityToken>BinarySecurityToken"` }
SuccessResponseBody is the body of a successful response, it holds the token