mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 23:34:25 +00:00
16 lines
246 B
Go
Vendored
16 lines
246 B
Go
Vendored
package openid
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type OpenID struct {
|
|
urlGetter httpGetter
|
|
}
|
|
|
|
func NewOpenID(client *http.Client) *OpenID {
|
|
return &OpenID{urlGetter: &defaultGetter{client: client}}
|
|
}
|
|
|
|
var defaultInstance = NewOpenID(http.DefaultClient)
|