- Implemented Logout and RefreshToken methods in AuthenticationController. - Added IMailingService and IMailingRepository to Program.cs. - Updated project structure in Surge365.MassEmailReact.API.csproj. - Modified API host address and endpoints in Server.http. - Introduced AuthAppCode in appsettings.json for context distinction. - Changed GenerateTokens method to async in IAuthService. - Initialized string properties in User.cs to avoid null values. - Added new Mailing mapping in DapperConfiguration.cs. - Created MailingsController for handling mailing operations. - Developed Mailing, MailingUpdateDto, IMailingService, and IMailingRepository classes. - Updated frontend with MailingEdit and NewMailings components. - Enhanced authentication handling in AuthCheck.tsx and AuthContext.tsx. - Introduced ProtectedPageWrapper for route protection based on roles. - Added EmailList component for email input validation. - Updated utils.ts for token and cookie management functions. - Modified vite.config.ts for new HTTPS certificate name. - Updated CHANGELOG.md to reflect recent changes.
29 lines
854 B
HTTP
29 lines
854 B
HTTP
@Surge365.MassEmailReact.Local_HostAddress = http://localhost:5065/api
|
|
@Surge365.MassEmailReact.UATServer_HostAddress = https://uat.massemail2.surge365.com/api
|
|
|
|
@Surge365.MassEmailReact.API_HostAddress = http://localhost:5065/api
|
|
|
|
# Step 1: Authenticate to get the refresh token cookie
|
|
POST {{Surge365.MassEmailReact.API_HostAddress}}/authentication/authenticate
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
{
|
|
"username": "dheadrick",
|
|
"password": "Password1"
|
|
}
|
|
###
|
|
# Step 2: Call refreshtoken with the cookie
|
|
POST {{Surge365.MassEmailReact.API_HostAddress}}/authentication/refreshtoken
|
|
Accept: application/json
|
|
Cookie: refreshToken=hhlLpqHP0kiYhyyBDr9hZw==
|
|
###
|
|
|
|
GET {{Surge365.MassEmailReact.API_HostAddress}}/servers/
|
|
Accept: application/json
|
|
###
|
|
|
|
GET {{Surge365.MassEmailReact.API_HostAddress}}/servers/get
|
|
Accept: application/json
|
|
|
|
###
|