Skip to content

OAuth secret for Microsoft 365 email channel fails to save #480

Closed

Description

@siegerhansma

On an inbound email channel (“Support”, currently disabled) using OAuth with Microsoft 365, the Client Secret is empty after I click Save Changes. The other fields (Client ID, Tenant ID, Mailbox address) are kept. Connect Mailbox then fails validation because the required Client Secret is empty, so the mailbox stays “Not Connected”.

Steps to reproduce

Open the inbound email channel configuration (Configuration tab).
Set Authentication Method to OAuth and Provider to Microsoft 365.
Fill in Client ID, Client Secret, Tenant ID and Mailbox address.
Click Save Changes.
Reopen or refresh the configuration. The Client Secret field is empty and shows only the “Client secret value” placeholder.
Click Connect Mailbox. Validation fails on the empty Client Secret field.

Expected behavior
The Client Secret is stored on save. The UI may show it masked or leave the field blank with a “secret saved” indicator. Connect Mailbox then uses the stored secret and starts the OAuth flow.

Actual behavior
The Client Secret is not persisted, and the field is empty after saving. The UI says “Save settings, then connect your mailbox”, but that sequence can’t succeed because the secret is lost on save. The Client Secret is marked as required, so Connect Mailbox validation fails.

Impact
The Microsoft 365 OAuth mailbox can’t be connected, so inbound email for this channel can’t be set up. There is no workaround.

Environment

Windshift version: 0.9.3
Provider: Microsoft 365 (OAuth), tenant ID is set
Not yet tested: whether the Google OAuth provider behaves the same

Already checked

  • The secret was pasted from the Azure app registration (the secret Value, not the Secret ID).
  • No leading or trailing whitespace.
  • Same result on repeated attempts.
Image

Activity

  1. stefan-ernst commented on Nov 10, 2026

    @stefan-ernst
    Contributor

    Hey, thanks for reporting. This looks like its only the frontend guard that fails to let you connect the mailbox. The secret is preserved on the backend already, so the frontend needs to be made aware that it is

  2. siegerhansma commented on Nov 13, 2026

    @siegerhansma
    Author

    Tested and works in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-0.9.4Fix or feature shipped in v0.9.4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions