miniflux/ui/oauth2.go

22 lines
478 B
Go
Raw Normal View History

// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
2017-11-23 07:22:33 +01:00
2018-10-08 03:42:43 +02:00
package ui // import "miniflux.app/ui"
2017-11-23 07:22:33 +01:00
import (
"context"
2018-08-25 06:51:50 +02:00
"miniflux.app/config"
"miniflux.app/oauth2"
2017-11-23 07:22:33 +01:00
)
func getOAuth2Manager(ctx context.Context) *oauth2.Manager {
2017-11-23 07:22:33 +01:00
return oauth2.NewManager(
ctx,
config.Opts.OAuth2ClientID(),
config.Opts.OAuth2ClientSecret(),
config.Opts.OAuth2RedirectURL(),
config.Opts.OAuth2OidcDiscoveryEndpoint(),
2017-11-23 07:22:33 +01:00
)
}