Skip to content

Added Client Credentials Flow for OAuth2#2

Open
sonjli wants to merge 1 commit into
GDKsoftware:mainfrom
sonjli:add-new-credentials-flow
Open

Added Client Credentials Flow for OAuth2#2
sonjli wants to merge 1 commit into
GDKsoftware:mainfrom
sonjli:add-new-credentials-flow

Conversation

@sonjli
Copy link
Copy Markdown

@sonjli sonjli commented Mar 11, 2026

For backend apps that don't need browser login

Simple proposal for "Client Credentials Flow". I need it for a service that can't login with user interactions.

@cmgeuze cmgeuze force-pushed the main branch 2 times, most recently from c0e407d to 7fbbcab Compare March 16, 2026 10:33
For backend apps that don't need browser login
@sonjli sonjli force-pushed the add-new-credentials-flow branch from 0ee8141 to 281193c Compare March 25, 2026 19:46
Copy link
Copy Markdown
Member

@cmgeuze cmgeuze left a comment

Choose a reason for hiding this comment

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

Thanks for this! Client Credentials implementation looks good.

Some notes:

  • The attachment download in DoReadMessage is unrelated, would be better as a separate PR
  • The if FAppMode then MailboxAddress := ... pattern is repeated 8 times — set it once after auth instead. That also removes the need for the extra Run parameters and fixes the misleading "Starting Application authentication flow" writeln that currently shows for both flows

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.

2 participants