emicklei / go-restful

package for building REST-style Web Services using Go
MIT License
5.03k stars 690 forks source link

Security is not exposed in RouteBuilder #531

Closed wardab0104 closed 11 months ago

wardab0104 commented 1 year ago

Hi,

Some of the endpoints we have does not need any authentication, so we want to remove the lock icon of these endpoints, but Security of an operation is not exposed in RouteBuilder, how can I achieve this? image

emicklei commented 1 year ago

hi, i will get back to you after my holidays. Maybe you already have a suggestion for a fix?

On Wed, 5 Jul 2023 at 16:38, wardab0104 @.***> wrote:

Hi,

Some of the endpoints we have does not need any authentication, so we want to remove the lock icon of these endpoints, but Security of an operation is not exposed in RouteBuilder, how can I achieve this? [image: image] https://user-images.githubusercontent.com/111415925/251186053-62eda38f-6eb8-40c4-84a4-63c527311d71.png

— Reply to this email directly, view it on GitHub https://github.com/emicklei/go-restful/issues/531, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHRDANWRP42HB7MI4APDTXOV367ANCNFSM6AAAAAAZ7BZY6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Met vriendelijke groet, Kind regards,

Ernest Micklei

Try out my music project Melrōse https://melrōse.org

wardab0104 commented 1 year ago

Hi,

Sorry, didn’t find a way to fix it

On Jul 7, 2023, at 23:17, Ernest Micklei @.***> wrote:

hi, i will get back to you after my holidays. Maybe you already have a suggestion for a fix?

On Wed, 5 Jul 2023 at 16:38, wardab0104 @.***> wrote:

Hi,

Some of the endpoints we have does not need any authentication, so we want to remove the lock icon of these endpoints, but Security of an operation is not exposed in RouteBuilder, how can I achieve this? [image: image] https://user-images.githubusercontent.com/111415925/251186053-62eda38f-6eb8-40c4-84a4-63c527311d71.png

— Reply to this email directly, view it on GitHub https://github.com/emicklei/go-restful/issues/531, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHRDANWRP42HB7MI4APDTXOV367ANCNFSM6AAAAAAZ7BZY6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Met vriendelijke groet, Kind regards,

Ernest Micklei

Try out my music project Melrōse https://melrōse.org — Reply to this email directly, view it on GitHub https://www.google.com/url?q=https://github.com/emicklei/go-restful/issues/531%23issuecomment-1625568064&source=gmail-imap&ust=1689347829000000&usg=AOvVaw1xeLrobNoOqt5evWWUkkfI, or unsubscribe https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/A2SBE5IEFHYA7AM5EEDCMLLXPAR7HANCNFSM6AAAAAAZ7BZY6A&source=gmail-imap&ust=1689347829000000&usg=AOvVaw3ox0_uqlY0oJz4gu81eADR. You are receiving this because you authored the thread.

-- Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and deleting this message. This email does not constitute an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.

emicklei commented 1 year ago

@wardab0104 are you using the openapi extension with this package? go-restful itself does not have information about auth

wardab0104 commented 1 year ago

sorry I'm not very familiar with this, we are using go-openapi and go-restful, I can see the Security property in OperationProps in go-openapi, but it's not exposed in RouteBuilder

emicklei commented 1 year ago

sorry I'm not very familiar with this, we are using go-openapi and go-restful, I can see the Security property in OperationProps in go-openapi, but it's not exposed in RouteBuilder

Like I mentioned, go-restful itself does not have information about security (or any other auth) so there is nothing to expose. What do you expect? Operation info?

emicklei commented 11 months ago

closed because no activity, feel free to reopen if needed.