func NewAuthProvider(authn AuthenticationStrategy, authz AuthorizationStrategy) (AuthProvider, error) {
	if authn == nil && authz == nil {
		return nil, errors.New("missing required strategy")
	}
	return &authProviderImpl{
		authn: authn,
		authz: authz,
	}, nil
}
// NewAuthProvider retrieves a new AuthProvider
NewAuthProvider retrieves a new AuthProvider
// NewAuthProvider retrieves a new AuthProvider
func NewAuthProvider(authn AuthenticationStrategy, authz AuthorizationStrategy) (AuthProvider, error) {
	if authn == nil && authz == nil {
		return nil, errors.New("missing required strategy")
	}
	return &authProviderImpl{
		authn: authn,
		authz: authz,
	}, nil
}
func NewAuthProvider ( authn AuthenticationStrategy , authz AuthorizationStrategy ) ( AuthProvider , error ) { if authn == nil && authz == nil { return nil , errors . New ( " " ) } return & authProviderImpl { authn : authn , authz : authz , } , nil }
NewAuthProvider retrieves a new AuthProvider
NewAuthProvider retrieves a new AuthProvider