java - Swagger Spring-MVC/SwaggerUI Authentication -


i've been attempting set swagger spring-mvc , swagger ui using latest version of springmvc implementation here : swagger spring-mvc

i've been able initial setup working, when navigate swaggerui page, error saying can't access api because "server returned undefined". when in firebug, says it's getting 401 unauthorized.

when first navigate swaggerui url, dialog pops me enter user-name , password. know it's correct because can manually use resources same credentials.

my assumption have swagger adding form of authorization controllers generates itself. tried setting basic auth, , not setting auth @ all, doesn't work either.

does know solution be? in advance.

as posted question, realized answer.

the default url provider set 127.0.0.1:8080 , navigating localhost:8080. resolve same place, guess authentication 1 won't applied other. silly me.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -