miniflux/ui/oauth2.go

19 lines
440 B
Go
Raw Normal View History

// Copyright 2018 Frédéric Guillot. All rights reserved.
2017-11-23 07:22:33 +01:00
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package ui
2017-11-23 07:22:33 +01:00
import (
2017-12-13 06:48:13 +01:00
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/oauth2"
2017-11-23 07:22:33 +01:00
)
func getOAuth2Manager(cfg *config.Config) *oauth2.Manager {
return oauth2.NewManager(
cfg.OAuth2ClientID(),
cfg.OAuth2ClientSecret(),
cfg.OAuth2RedirectURL(),
2017-11-23 07:22:33 +01:00
)
}