mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 13:51:31 +00:00

* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
24 lines
678 B
Go
24 lines
678 B
Go
package login
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
iam_model "github.com/zitadel/zitadel/internal/iam/model"
|
|
"github.com/zitadel/zitadel/internal/query"
|
|
)
|
|
|
|
func (l *Login) getDefaultDomainPolicy(r *http.Request) (*query.DomainPolicy, error) {
|
|
return l.query.DefaultDomainPolicy(r.Context())
|
|
}
|
|
|
|
func (l *Login) getOrgDomainPolicy(r *http.Request, orgID string) (*query.DomainPolicy, error) {
|
|
if orgID == "" {
|
|
return l.query.DefaultDomainPolicy(r.Context())
|
|
}
|
|
return l.query.DomainPolicyByOrg(r.Context(), orgID)
|
|
}
|
|
|
|
func (l *Login) getIDPConfigByID(r *http.Request, idpConfigID string) (*iam_model.IDPConfigView, error) {
|
|
return l.authRepo.GetIDPConfigByID(r.Context(), idpConfigID)
|
|
}
|