-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Ad-Auction-Result-Nonce header for PA B&A
Add support for the alternate authorization flow for Protected Audiences Bidding and Auction response (as described in WICG/turtledove#1233). This feature is behind the FledgeBiddingAndAuctionNonceSupport feature flag which is going to be enabled by default (for a waterfall rollout in M133). Bug:385128725 Change-Id: Id3c622241c82ed0b71037bfeb1ca5432cd6e66dc
- Loading branch information
1 parent
48fa0bb
commit 8617d67
Showing
3 changed files
with
113 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
def main(request, response): | ||
response.status = (200, b"OK") | ||
response.headers.set(b"Content-Type", b"text/plain") | ||
hash_list = request.GET.get_list(b"hashes") | ||
response.headers.set(b"Ad-Auction-Result", | ||
b",".join(hash_list)) | ||
if b"hashes" in request.GET: | ||
hash_list = request.GET.get_list(b"hashes") | ||
response.headers.set(b"Ad-Auction-Result", | ||
b",".join(hash_list)) | ||
if b"nonces" in request.GET: | ||
nonce_list = request.GET.get_list(b"nonces") | ||
response.headers.set(b"Ad-Auction-Result-Nonce", | ||
b",".join(nonce_list)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters