1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00
miniflux-v2/ui/oauth2.go

19 lines
437 B
Go
Raw Normal View History

// 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-08-24 21:51:50 -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
)
func getOAuth2Manager(cfg *config.Config) *oauth2.Manager {
return oauth2.NewManager(
cfg.OAuth2ClientID(),
cfg.OAuth2ClientSecret(),
cfg.OAuth2RedirectURL(),
2017-11-22 22:22:33 -08:00
)
}