oauth2.go 436 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 // import "miniflux.app/ui"
  5. import (
  6. "miniflux.app/config"
  7. "miniflux.app/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. }