15 lines
226 B
Go
15 lines
226 B
Go
|
package auth
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func NewEmptyAuthProvider() AuthProvider {
|
||
|
return &emptyAuthProvider{}
|
||
|
}
|
||
|
|
||
|
type emptyAuthProvider struct {
|
||
|
}
|
||
|
|
||
|
func (p *emptyAuthProvider) IsAllowed(request *http.Request) bool {
|
||
|
return true
|
||
|
}
|