1
0
Fork 0
miniflux/internal/ui/oauth2.go

22 lines
508 B
Go
Raw Normal View History

// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
2017-11-23 01:22:33 -05:00
package ui // import "miniflux.app/v2/internal/ui"
2017-11-23 01:22:33 -05:00
import (
"context"
"miniflux.app/v2/internal/config"
"miniflux.app/v2/internal/oauth2"
2017-11-23 01:22:33 -05:00
)
func getOAuth2Manager(ctx context.Context) *oauth2.Manager {
2017-11-23 01:22:33 -05:00
return oauth2.NewManager(
ctx,
config.Opts.OAuth2ClientID(),
config.Opts.OAuth2ClientSecret(),
config.Opts.OAuth2RedirectURL(),
config.Opts.OIDCDiscoveryEndpoint(),
2017-11-23 01:22:33 -05:00
)
}