SetAuthenticationAndPasswordPolicy API Implementation Summary

? Implementation Complete

The SetAuthenticationAndPasswordPolicy web service API has been successfully implemented following the step-by-step guide in IRSoapApi/agents.md.


Files Modified

Step 1: Interface Declaration

File: IRSoapApi/ISrv.cs

Step 2: SOAP Implementation

File: IRSoapApi/Srv.cs

Step 3: REST API Controllers

File: IRWebCore/Controllers/Srv.cs

Step 4: WebAPI Layer

File: WebAPI/SettingsWebServices.cs

Step 5: Business Logic Layer

File: WebServices/SettingServices.cs

Step 6: API Documentation

File: WebApiDocs/wwwroot/documentation/SetAuthenticationAndPasswordPolicy.md


API Overview

Endpoint

POST /srv.asmx/SetAuthenticationAndPasswordPolicy

Parameters

Required Permission

Implementation Reference

Based on UI implementation at line 239-252 in PageMiddleware/pages/control-panel/ApplicationSettingsApply.cs


AuthenticationAndPasswordPolicy Structure

PasswordPolicy

PasswordRePromptActions


Example Usage

REST POST Example

POST /srv.asmx/SetAuthenticationAndPasswordPolicy HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=abc123&
settingsXml=<AuthenticationAndPasswordPolicy>...</AuthenticationAndPasswordPolicy>

Sample XML

<AuthenticationAndPasswordPolicy>
  <PasswordPolicy>
    <Expires>90</Expires>
    <MinLen>8</MinLen>
    <MustIncludeAlphaNumericCharacters>true</MustIncludeAlphaNumericCharacters>
    <MustIncludeNumericCharacters>true</MustIncludeNumericCharacters>
    <MustIncludeNonAlphaNumericCharacters>true</MustIncludeNonAlphaNumericCharacters>
    <MustNotEqualEmailAddress>true</MustNotEqualEmailAddress>
    <MustNotEqualUserName>true</MustNotEqualUserName>
    <MustNotInCommonPasswordList>true</MustNotInCommonPasswordList>
  </PasswordPolicy>
  <PasswordRePromptActions>
    <DomainDelete>true</DomainDelete>
    <OnDelete>true</OnDelete>
    <UserDelete>true</UserDelete>
    <SecurityApply>true</SecurityApply>
    <OnOwnerChange>true</OnOwnerChange>
    <OnClassify>false</OnClassify>
    <OnReviewTask>false</OnReviewTask>
  </PasswordRePromptActions>
</AuthenticationAndPasswordPolicy>

Testing Checklist


Build Status

? Build Successful - All files compile without errors



Implementation Date: 2024 Follow-up: Document in release notes and notify API consumers