Subject: Proposed changes for oauth2

From: Xiyue Deng <[email-masked]>
Date: Sun, 3 Aug 2025 17:20:38 -0700

I propose the series of changes for oauth2 which would lead to the
next release of 0.18.

Each commit message explains what is done.  Please let me know if
anything is unclear.