Serve Google's OAuth callback on /api/email/oauth/callback

FeatureEmailService
Ya
25 Agosti 2026, 01:12 UTC
Mwandishi
Kamo
Ahadi ya
4c7abfd

The platform console needs an address to show an operator setting up the Google Workspace registration, the way VOIP has /api/voip/oauth/callback. The only email callback that existed was **************** shared by Microsoft 365, Google and Zoho through one configured redirect. Give Google its own, on the shorter path, and leave the other two where they are: a redirect URI lives in a vendor console, so repointing all three would have meant re-registering Entra and Zoho to move one. EmailOAuthCallbackController is a second door onto ProviderController's callback, not a second implementation — the result page, the state decoding and the token exchange stay in one place. The redirect is now chosen per provider, and because the token exchange has to replay whatever the authorization request sent, the callback reads the provider back out of the state it was handed.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei