springfox-demos icon indicating copy to clipboard operation
springfox-demos copied to clipboard

Basic Auth & Security Schemes

Open tomb50 opened this issue 10 years ago • 5 comments

Hi,

Are the security schemes working on these test apps? I can see that the user docket has only read only access and is set to Basic Auth, so shouldn't a user be prevented from invoking the POST createUser endpoint?

I have run boot-swagger & spring-java and on each demo was able to create and delete users.

Thanks Tom

tomb50 avatar Aug 31 '15 16:08 tomb50

@tomb50 these demos are woefully out of date. They need to be updated to the latest released version

dilipkrish avatar Aug 31 '15 17:08 dilipkrish

@dilipkrish Ahh okay, thanks for confirming.

tomb50 avatar Aug 31 '15 18:08 tomb50

The demos should be uptodate as of 2.3.1 atleast

dilipkrish avatar Jan 27 '16 01:01 dilipkrish

Hi @dilipkrish , i need basic authentication using springfox. here iam not able to find proper code for that .i am completly new to swagger just i need a code which works with basic authentication.

any help ?

rajeshreddySR12 avatar Mar 22 '18 11:03 rajeshreddySR12

There isn't one right now. However, you could try using jhipster to generate a project that helps.

dilipkrish avatar Mar 24 '18 13:03 dilipkrish