Skip to content

ATLAS-5309 : Allow unauthenticated access to Swagger apidocs static a…#673

Merged
chaitalicod merged 1 commit into
apache:masterfrom
pareshddevalia:ATLAS-5309
Jun 16, 2026
Merged

ATLAS-5309 : Allow unauthenticated access to Swagger apidocs static a…#673
chaitalicod merged 1 commit into
apache:masterfrom
pareshddevalia:ATLAS-5309

Conversation

@pareshddevalia

Copy link
Copy Markdown
Contributor

…ssets

What changes were proposed in this pull request?

Added /apidocs/** to security exclusions in AtlasSecurityConfig.java and spring-security.xml to allow anonymous access to Swagger UI assets and OpenAPI documentation.
Updated index.js to handle anonymous users and prevent CSRF-related JavaScript errors when no session is available.

How was this patch tested?

Verified Swagger UI and openapi.json are accessible without authentication.
Confirmed Swagger UI loads successfully for anonymous users.
Verified existing authenticated Atlas APIs works.

…ssets

Changes :-
	Added /apidocs/** to security exclusions in AtlasSecurityConfig.java and spring-security.xml to allow anonymous access to Swagger UI assets and OpenAPI documentation.
        Updated index.js to handle anonymous users and prevent CSRF-related JavaScript errors when no session is available.

Testing
        Verified Swagger UI and openapi.json are accessible without authentication.
        Confirmed Swagger UI loads successfully for anonymous users.

@rodriguesnixon rodriguesnixon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

+1

@chaitalicod chaitalicod merged commit 0a7fc7d into apache:master Jun 16, 2026
2 checks passed
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.

4 participants