Documentation
¶
Overview ¶
Package dropbox implements the Dropbox provider.
Index ¶
- Constants
- func Register()
- type Dropbox
- func (v *Dropbox) GetAccessToken(ctx fiber.Ctx) (*providers.OAuthToken, error)
- func (v *Dropbox) GetAuthorizeURL(state string) string
- func (v *Dropbox) RefreshAccessToken(ctx context.Context, refreshToken string) (*providers.OAuthToken, error)
- func (v *Dropbox) Upload(path string, content io.Reader) error
- type TokenResponse
Constants ¶
View Source
const ( ID = "dropbox" ClientIdKey = "key" ClientSecretKey = "secret" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dropbox ¶
type Dropbox struct {
// contains filtered or unexported fields
}
func GetClient ¶ added in v0.92.0
func GetClient() *Dropbox
GetClient reads OAuth provider config and returns a new Dropbox client suitable for OAuth authorization flows.
func NewDropbox ¶
func (*Dropbox) GetAccessToken ¶
func (*Dropbox) GetAuthorizeURL ¶
func (*Dropbox) RefreshAccessToken ¶ added in v0.92.0
func (v *Dropbox) RefreshAccessToken(ctx context.Context, refreshToken string) (*providers.OAuthToken, error)
RefreshAccessToken implements OAuthRefresher for Dropbox. Dropbox supports token refresh via the refresh_token grant.
Click to show internal directories.
Click to hide internal directories.