Skip to content

api!: remove all oauth support and drop DC_LP_AUTH* flags#8431

Merged
hpk42 merged 1 commit into
mainfrom
hpk/remove_oauth
Jul 21, 2026
Merged

api!: remove all oauth support and drop DC_LP_AUTH* flags#8431
hpk42 merged 1 commit into
mainfrom
hpk/remove_oauth

Conversation

@hpk42

@hpk42 hpk42 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: removed oauth2 module, dc_get_oauth2_url FFI function, all DC_LP_AUTH flags, and the oauth2 parameter/field from SMTP/IMAP clients, JSON-RPC interfaces, and CLI tools.

also contains regenerated provider data after dropping oauth in the update script.

motivation: it's only yandex that is supported with OAUTH on android, but nobody knows if it works or of any users. We certainly don't want to maintain this code, and given we are currently engaging in automatic relay replacement handling, i think it's good to remove stale code/simplify things where we can.

Comment thread src/config.rs

@r10s r10s left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the huge cleanup!

i am pretty confident, that this removal will not affect many ppl, maybe even no one. even when we removed gmail, very few ppl were really affected, for yandex probably even less, also as it is not possible to created new yandex accounts with oauth2 since 2+ years (you can created yandex profiles with apppasswords tho, that continues to be supported)

@r10s

r10s commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

actually, CFFI was still referencing dc_get_oauth2_url(), however, it was not called anywhere.

did a PR to remove that completely at deltachat/deltachat-android#4552

as there is nothing more to do, we can still merge this PR at any time, i'd say :)

@hpk42
hpk42 force-pushed the hpk/remove_oauth branch from 504083f to 2d672b7 Compare July 21, 2026 09:16
BREAKING CHANGE: removed oauth2 module, dc_get_oauth2_url FFI function, DC_LP_AUTH flags and configured/serverflags, and the oauth2 parameter/field from SMTP/IMAP clients, JSON-RPC interfaces, and CLI tools.

also contains regenerated provider data after dropping oauth in the update script.
@hpk42
hpk42 force-pushed the hpk/remove_oauth branch from 2d672b7 to a238de8 Compare July 21, 2026 10:30

# also add provider with no special things to do -
# eg. _not_ supporting oauth2 is also an information and we can skip the mx-lookup in this case
# eg. we can skip the mx-lookup in this case

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MX records are not resolved since 2.23 (214a1d3) already.

The whole comment can be removed, it's not unexpected that if a provider is in the database then we add it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am also removing the whole provider db support in #8437

r10s added a commit to deltachat/deltachat-android that referenced this pull request Jul 21, 2026
the api is not used in java since 2+ years,
and will be finally removed in core at chatmail/core#8431
@hpk42
hpk42 merged commit 5c1e695 into main Jul 21, 2026
56 of 57 checks passed
@hpk42
hpk42 deleted the hpk/remove_oauth branch July 21, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants