provider.go 437 B

12345678910111213
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package oauth2 // import "miniflux.app/oauth2"
  5. import "context"
  6. // Provider is an interface for OAuth2 providers.
  7. type Provider interface {
  8. GetUserExtraKey() string
  9. GetRedirectURL(state string) string
  10. GetProfile(ctx context.Context, code string) (*Profile, error)
  11. }