Skip to content

feat(site): add query param support to OAuth2 app creation page#21821

Merged
kylecarbs merged 1 commit intomainfrom
feature/oauth2-app-query-params
Feb 2, 2026
Merged

feat(site): add query param support to OAuth2 app creation page#21821
kylecarbs merged 1 commit intomainfrom
feature/oauth2-app-query-params

Conversation

@blinkagent
Copy link
Contributor

@blinkagent blinkagent bot commented Feb 2, 2026

Summary

Adds support for pre-filling the OAuth2 application creation form via URL query parameters.

Query Parameters

Parameter Description
name Pre-fills the "Application name" field
callback_url Pre-fills the "Callback URL" field
icon Pre-fills the "Application icon" field

Example

/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.

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
@coder-tasks
Copy link
Contributor

coder-tasks bot commented Feb 2, 2026

Documentation Check

Updates Needed

  • docs/admin/integrations/oauth2-provider.md - Update the "Creating OAuth2 Applications" section to mention the URL query parameter feature

The PR adds support for pre-filling the OAuth2 application creation form via URL query parameters (name, callback_url, icon). This is a useful feature for external tools or documentation linking to the app creation page.

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
Parameter Description
name Pre-fills the "Application name" field
callback_url Pre-fills the "Callback URL" field
icon Pre-fills the "Application icon" field

This allows external tools or documentation to link directly to the OAuth2 app creation page with pre-populated values.


---
*Automated review via [Coder Tasks](https://coder.com/docs/ai-coder/tasks)*

@kylecarbs
Copy link
Member

For anyone wondering, I'm adding this for a demo I'm making.

@kylecarbs kylecarbs enabled auto-merge (squash) February 2, 2026 03:42
@kylecarbs kylecarbs merged commit 6ac77f2 into main Feb 2, 2026
46 of 48 checks passed
@kylecarbs kylecarbs deleted the feature/oauth2-app-query-params branch February 2, 2026 03:56
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant