feat(site): add query param support to OAuth2 app creation page#21821
Merged
feat(site): add query param support to OAuth2 app creation page#21821
Conversation
Adds support for pre-filling the OAuth2 application creation form via URL query parameters. The following parameters are supported: - name: Pre-fills the application name field - callback_url: Pre-fills the callback URL field - icon: Pre-fills the application icon URL field Example URL: /deployment/oauth2-provider/apps/add?name=MyApp&callback_url=https://example.com/callback&icon=/icon/github.svg
Contributor
Documentation CheckUpdates Needed
The PR adds support for pre-filling the OAuth2 application creation form via URL query parameters ( Suggested addition after line 44 (after the Web UI method): You can also pre-fill the form fields by adding query parameters to the URL:
```url
https://coder.example.com/deployment/oauth2-provider/apps/add?name=MyApp&callback_url=https://example.com/callback&icon=/icon/github.svg
This allows external tools or documentation to link directly to the OAuth2 app creation page with pre-populated values. |
kylecarbs
approved these changes
Feb 2, 2026
Member
|
For anyone wondering, I'm adding this for a demo I'm making. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for pre-filling the OAuth2 application creation form via URL query parameters.
Query Parameters
namecallback_urliconExample
This allows external tools or documentation to link directly to the OAuth2 app creation page with pre-populated values.