mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add OAuth2 authentication
This commit is contained in:
parent
9877051f12
commit
cc6d272eb7
351 changed files with 81664 additions and 55 deletions
11
server/oauth2/provider.go
Normal file
11
server/oauth2/provider.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2017 Frédéric Guillot. All rights reserved.
|
||||
// Use of this source code is governed by the Apache 2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package oauth2
|
||||
|
||||
// Provider is an interface for OAuth2 providers.
|
||||
type Provider interface {
|
||||
GetRedirectURL(state string) string
|
||||
GetProfile(code string) (*Profile, error)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue