Skip to content

Add security schemes for SwaggerUI authentication in OpenAPI#160

Merged
dealloc merged 1 commit intohelldivers-2:masterfrom
AJXD2:feat/swagger-auth-schemes
Mar 14, 2026
Merged

Add security schemes for SwaggerUI authentication in OpenAPI#160
dealloc merged 1 commit intohelldivers-2:masterfrom
AJXD2:feat/swagger-auth-schemes

Conversation

@AJXD2
Copy link
Contributor

@AJXD2 AJXD2 commented Mar 14, 2026

Summary

Adds security scheme definitions to the OpenAPI document so that SwaggerUI displays an "Authorize" button, allowing users to set X-Super-Client and X-Super-Contact once rather than per-endpoint.

Changes

  • HelldiversDocumentProcessor.cs - registers security schemes on the OpenAPI document
  • SuperHeadersProcessor.cs - applies security requirements to operations that require auth headers

Notes

Closes #159
No breaking changes. Purely additive to the OpenAPI spec generation.

@AJXD2 AJXD2 requested a review from dealloc as a code owner March 14, 2026 07:16
@dealloc
Copy link
Member

dealloc commented Mar 14, 2026

this will make the OpenAPI easier to use, thank you!

@dealloc dealloc merged commit 09cf094 into helldivers-2:master Mar 14, 2026
3 checks passed
@dealloc
Copy link
Member

dealloc commented Mar 14, 2026

and it's live!

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.

[FEATURE]: Allow authenticating once in SwaggerUI for X-Super-Client and X-Super-Contact headers

2 participants