oauth2.go 524 B

123456789101112131415161718192021
  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. "context"
  7. "miniflux.app/config"
  8. "miniflux.app/oauth2"
  9. )
  10. func getOAuth2Manager(ctx context.Context) *oauth2.Manager {
  11. return oauth2.NewManager(
  12. ctx,
  13. config.Opts.OAuth2ClientID(),
  14. config.Opts.OAuth2ClientSecret(),
  15. config.Opts.OAuth2RedirectURL(),
  16. config.Opts.OAuth2OidcDiscoveryEndpoint(),
  17. )
  18. }