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