1
0
Fork 0
miniflux/ui/oauth2.go

19 lines
442 B
Go
Raw Normal View History

// 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-10-07 21:42:43 -04:00
package ui // import "miniflux.app/ui"
2017-11-23 01:22:33 -05:00
import (
2018-08-25 00:51:50 -04:00
"miniflux.app/config"
"miniflux.app/oauth2"
2017-11-23 01:22:33 -05:00
)
func getOAuth2Manager() *oauth2.Manager {
2017-11-23 01:22:33 -05:00
return oauth2.NewManager(
config.Opts.OAuth2ClientID(),
config.Opts.OAuth2ClientSecret(),
config.Opts.OAuth2RedirectURL(),
2017-11-23 01:22:33 -05:00
)
}