oauth2.go 440 B

123456789101112131415161718
  1. // Copyright 2018 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 ui
  5. import (
  6. "github.com/miniflux/miniflux/config"
  7. "github.com/miniflux/miniflux/oauth2"
  8. )
  9. func getOAuth2Manager(cfg *config.Config) *oauth2.Manager {
  10. return oauth2.NewManager(
  11. cfg.OAuth2ClientID(),
  12. cfg.OAuth2ClientSecret(),
  13. cfg.OAuth2RedirectURL(),
  14. )
  15. }