Get Sector Security Settings
const url = 'https://api.spartanauth.com/api/v1/sectors/example/settings';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.spartanauth.com/api/v1/sectors/example/settingsReturns all the details of the given sector. Requires the user to be an admin of the sector or the default sector. This endpoint is intended for internal use by the admin settings UI and returns sensitive information like email templates and token durations that should not be exposed publicly.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”A successful response.
object
Duration in seconds for access tokens issued after authentication. 0 leaves the stored value unchanged. Allowed when set: 1 second through 7 days. Issuance caps a larger stored value at 7 days.
Consecutive failures before one factor locks. 0 inherits the platform default (5). Allowed when set: 3-100.
Seconds a locked factor stays locked. 0 inherits the platform default (900). Allowed when set: 300-1800.
BlockPwnedPasswords rejects a new password that appears in the Pwned Passwords corpus.
RequirePwnedPasswordReset withholds a session when the current password is already marked breached. Upgrade the login widget before turning this on. Existing sessions stay valid until they expire.
Example generated
{ "sectorID": "example", "MFARequired": true, "SelfSignUpAllowed": true, "AllowUserCreationForNonAdmins": true, "AllowUserReadForNonAdmins": true, "OTPEmailSubject": "example", "OTPEmailBodyTemplate": "example", "OTPEmailBodyHTMLTemplate": "example", "OTPSMSTemplate": "example", "InviteEmailSubject": "example", "InviteEmailBodyTemplate": "example", "InviteEmailBodyHTMLTemplate": "example", "InviteExpirationHours": "example", "AccessTokenDuration": "example", "PasswordResetEmailSubject": "example", "PasswordResetEmailBodyTemplate": "example", "PasswordResetEmailBodyHTMLTemplate": "example", "PasswordResetTimeoutMinutes": "example", "WebAuthnRPID": "example", "WebAuthnRPDisplayName": "example", "WebAuthnRPOrigins": [ "example" ], "MagicLinkURL": "example", "WebAuthnDebug": true, "LockoutMaxAttempts": "example", "LockoutSeconds": "example", "BlockPwnedPasswords": true, "RequirePwnedPasswordReset": true}default
Section titled “default ”An unexpected error response.
object
object
Example generated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}