mirror of
https://github.com/miniflux/v2.git
synced 2024-09-07 11:59:21 +02:00
22 lines
508 B
Go
22 lines
508 B
Go
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package ui // import "miniflux.app/v2/internal/ui"
|
|
|
|
import (
|
|
"context"
|
|
|
|
"miniflux.app/v2/internal/config"
|
|
"miniflux.app/v2/internal/oauth2"
|
|
)
|
|
|
|
func getOAuth2Manager(ctx context.Context) *oauth2.Manager {
|
|
return oauth2.NewManager(
|
|
ctx,
|
|
config.Opts.OAuth2ClientID(),
|
|
config.Opts.OAuth2ClientSecret(),
|
|
config.Opts.OAuth2RedirectURL(),
|
|
config.Opts.OIDCDiscoveryEndpoint(),
|
|
)
|
|
}
|