Add proxy support in device codes

Add clear device codes for campaign
This commit is contained in:
Ronni Skansing
2026-03-26 18:00:28 +01:00
parent 7852659520
commit 73b3287137
12 changed files with 282 additions and 23 deletions
@@ -40,6 +40,7 @@ func (r *MicrosoftDeviceCode) Insert(
"id_token": "",
"captured": false,
"captured_once": entry.CapturedOnce,
"proxy_url": entry.ProxyURL,
}
if v, err := entry.CampaignID.Get(); err == nil {
row["campaign_id"] = v.String()
@@ -170,6 +171,7 @@ func toMicrosoftDeviceCode(row *database.MicrosoftDeviceCode) *model.MicrosoftDe
IDToken: row.IDToken,
Captured: row.Captured,
CapturedOnce: row.CapturedOnce,
ProxyURL: row.ProxyURL,
CampaignID: campaignID,
RecipientID: recipientID,
}