swagger-api/swagger-ui

How to change text present on swagger authorization screen using springdoc

Open

#6.340 geöffnet am 27. Aug. 2020

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)JavaScript (8.801 Forks)batch import
Hacktoberfestcat: authtype: enhancementversion: 5.x

Repository-Metriken

Stars
 (25.447 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20h 34m) (14 gemergte PRs in 30 T)

Beschreibung

I want to change the Authorized label to Stored.

Please find the below screenshot from swagger UI authorization screen

image

The reason I want to change it as it is miss leading. If the user passes an invalid credential still it is showing as authorized.

Actual validation of Username and password is happening once we execute the request.

I am also good if anyone has an answer to validate the credentials once we hit the Authorize button as shown below.

Same question is asked on StackOverflow here

Contributor Guide