ZITADEL Docs
APIsCore ResourcesV1Instance Objects

GetLoginPolicy

GET
/policies/login

Response Body

application/json

application/json

curl -X GET "https://loading/policies/login"
{
  "policy": {
    "details": {
      "sequence": 0,
      "creationDate": "1s",
      "changeDate": "1s",
      "resourceOwner": "string"
    },
    "allowUsernamePassword": true,
    "allowRegister": true,
    "allowExternalIdp": true,
    "forceMfa": true,
    "passwordlessType": "PASSWORDLESS_TYPE_NOT_ALLOWED",
    "isDefault": true,
    "hidePasswordReset": true,
    "ignoreUnknownUsernames": true,
    "defaultRedirectUri": "string",
    "passwordCheckLifetime": "string",
    "externalLoginCheckLifetime": "string",
    "mfaInitSkipLifetime": "string",
    "secondFactorCheckLifetime": "string",
    "multiFactorCheckLifetime": "string",
    "secondFactors": [
      "SECOND_FACTOR_TYPE_UNSPECIFIED"
    ],
    "multiFactors": [
      "MULTI_FACTOR_TYPE_UNSPECIFIED"
    ],
    "idps": [
      {
        "idpId": "string",
        "idpName": "string",
        "idpType": "IDP_TYPE_UNSPECIFIED"
      }
    ],
    "allowDomainDiscovery": true,
    "disableLoginWithEmail": true,
    "disableLoginWithPhone": true,
    "forceMfaLocalOnly": true
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?