Skip to content

Add a config option to allow the client to be public#62

Open
thefinn93 wants to merge 1 commit intooauth2-proxy:mainfrom
thefinn93:public-client-support
Open

Add a config option to allow the client to be public#62
thefinn93 wants to merge 1 commit intooauth2-proxy:mainfrom
thefinn93:public-client-support

Conversation

@thefinn93
Copy link
Copy Markdown

@thefinn93 thefinn93 commented Mar 17, 2026

I wanted to use this with a "public" client (ie. frontend-only) where there is no secret. This should be completely backwards-compatible, only taking effect when the new config options are enabled. Those options are:

  • PublicClient - if set to true, client_secret is not a required param and is not compared to the configured secret. Presumably the secret would not be configured in this situation.
  • Hostname - if set, used when creating URLs to that reference this server. If left blank, previous behavior is used. I found this was needed to get a browser client to connect. Happy to split this into a separate PR if that's desired.

also allow overriding the provided hostname

Signed-off-by: Finn <finn@janky.solutions>
@thefinn93 thefinn93 force-pushed the public-client-support branch from 8ade93c to 303259d Compare March 17, 2026 21:05
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.

1 participant