2018-04-29 16:35:04 -07:00
|
|
|
// Copyright 2018 Frédéric Guillot. All rights reserved.
|
2017-11-22 22:22:33 -08:00
|
|
|
// Use of this source code is governed by the Apache 2.0
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2018-10-07 18:42:43 -07:00
|
|
|
package ui // import "miniflux.app/ui"
|
2017-11-22 22:22:33 -08:00
|
|
|
|
|
|
|
import (
|
2018-08-24 21:51:50 -07:00
|
|
|
"miniflux.app/config"
|
|
|
|
"miniflux.app/oauth2"
|
2017-11-22 22:22:33 -08:00
|
|
|
)
|
|
|
|
|
2019-06-01 18:18:09 -07:00
|
|
|
func getOAuth2Manager() *oauth2.Manager {
|
2017-11-22 22:22:33 -08:00
|
|
|
return oauth2.NewManager(
|
2019-06-01 18:18:09 -07:00
|
|
|
config.Opts.OAuth2ClientID(),
|
|
|
|
config.Opts.OAuth2ClientSecret(),
|
|
|
|
config.Opts.OAuth2RedirectURL(),
|
2017-11-22 22:22:33 -08:00
|
|
|
)
|
|
|
|
}
|