Skip to content

Conversation

@oguzkocer
Copy link
Contributor

This PR extracts the Kotlin and (tiny) Rust changes from #532 and adds some minor improvements/fixes on top of it. The first commit is the extraction and it mostly keeps things as is from #532 except addressing a merge conflict due to the changes from #652.

The only major change/fix is in 4c55721 which introduces WpHttpClient. In the original PR, the request executor accepts an OkHttpClient as an argument, but then if an allowed host is added, it modifies it. This can result in unexpected behavior. In this commit, I've introduced a sealed class, so the clients can either use their own OkHttpClient and have to implement the allowed hostnames themselves or they have to use the one we implement.

I also squeezed in a tiny Rust change in 9f131cb while I was double checking the behavior from this comment.

@oguzkocer oguzkocer added this to the 0.2 milestone Apr 8, 2025
@oguzkocer oguzkocer requested a review from jkmassel April 8, 2025 21:16
@oguzkocer oguzkocer enabled auto-merge (squash) April 8, 2025 21:17
@oguzkocer oguzkocer force-pushed the add-login-spec-kotlin-changes branch from 0a0e3b7 to ce218c9 Compare April 9, 2025 01:05
@oguzkocer oguzkocer merged commit 93abf0e into trunk Apr 9, 2025
20 checks passed
@oguzkocer oguzkocer deleted the add-login-spec-kotlin-changes branch April 9, 2025 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants