func (b *Backend) GetMethod() string {
	return b.Config.Method
}
GetMethod returns the authentication method associated with this backend.
package saml
import (
	samllib "github.com/crewjam/saml"
	"github.com/greenpau/caddy-auth-portal/pkg/enums/operator"
	"github.com/greenpau/caddy-auth-portal/pkg/errors"
	"github.com/greenpau/go-identity/pkg/requests"
	"go.uber.org/zap"
	"net/url"
)
type Backend struct {
	Config           *Config
	serviceProviders map[string]*samllib.ServiceProvider
	idpMetadataURL   *url.URL
	loginURL string
	logger   *zap.Logger
}
func NewDatabaseBackend(cfg *Config, logger *zap.Logger) *Backend {
	b := &Backend{
		Config: cfg,
		logger: logger,
	}
	return b
}
func (b *Backend) GetRealm() string {
	return b.Config.Realm
}
func (b *Backend) GetName() string {
	return b.Config.Name
}