mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-23 12:11:31 +00:00

* fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename orgiampolicy to domain policy * fix: merge conflicts * fix: protos * fix: md files * implement deprecated org iam policy again Co-authored-by: Livio Amstutz <livio.a@gmail.com>
24 lines
672 B
Go
24 lines
672 B
Go
package login
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
iam_model "github.com/caos/zitadel/internal/iam/model"
|
|
"github.com/caos/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)
|
|
}
|