Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authv2 / Networking improvements #1168

Merged
merged 26 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
826c347
Networking improvemenrts, changes in BSK testing utilities structure,…
federicocappelli Jan 17, 2025
59b90f7
NetworkProtectionTokenStoreMocks re-added
federicocappelli Jan 17, 2025
503d302
test improvements
federicocappelli Jan 17, 2025
a99cda2
lint
federicocappelli Jan 17, 2025
7cc96cf
pkgs dependencies cleanup
federicocappelli Jan 17, 2025
dd6d587
Merge branch 'main' into fcappelli/authv2/networking_improvements
federicocappelli Jan 17, 2025
6f62f1e
QueryItems data structure updated
federicocappelli Jan 17, 2025
2b13056
query items bug fixed
federicocappelli Jan 17, 2025
a426dae
changes to malicious site protection api client reverted
federicocappelli Jan 17, 2025
496b5af
lint
federicocappelli Jan 17, 2025
4723ed6
Merge branch 'main' into fcappelli/authv2/networking_improvements
federicocappelli Jan 20, 2025
206f039
assert added
federicocappelli Jan 20, 2025
590c3dc
Merge branch 'main' into fcappelli/authv2/networking_improvements
federicocappelli Jan 20, 2025
a71934b
cleanup
federicocappelli Jan 21, 2025
151ecd4
keychaintype duplication removed
federicocappelli Jan 21, 2025
143f79f
assert added to networking, PR suggestions applied
federicocappelli Jan 23, 2025
1dc86b4
some variables set as private
federicocappelli Jan 23, 2025
67c8a09
PR suggestions for OAuthClient
federicocappelli Jan 23, 2025
0f13db0
comments
federicocappelli Jan 23, 2025
fc9d1d5
pr suggestions
federicocappelli Jan 23, 2025
0dad370
api service tests for token refresh back-ported
federicocappelli Jan 23, 2025
15b5c5b
APIRequestV2 is now a struct
federicocappelli Jan 24, 2025
7bbe6d3
PR suggestions
federicocappelli Jan 24, 2025
4e6e7b3
pr suggestions
federicocappelli Jan 27, 2025
2e2a6a4
Merge branch 'main' into fcappelli/authv2/networking_improvements
federicocappelli Jan 27, 2025
81a5366
lint
federicocappelli Jan 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pr suggestions
federicocappelli committed Jan 27, 2025
commit 4e6e7b35b4137a4dee44b176d3594abacd4f6a5f
26 changes: 26 additions & 0 deletions Sources/Networking/v2/Extensions/Dictionary+QueryItems.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// Dictionary+QueryItems.swift
//
// Copyright © 2025 DuckDuckGo. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

public extension Dictionary<String, String> {

func toQueryItems() -> QueryItems {
self.map { QueryItem(key: $0.key, value: $0.value) }
}
}