jcmturner / gokrb5

Pure Go Kerberos library for clients and services
Apache License 2.0
729 stars 249 forks source link

gin gonic support #405

Closed phin1x closed 2 years ago

phin1x commented 4 years ago

Is it planned to support gin gonic? since the handler methods get a gin context variable, the http server methods would have to be duplicated and adapted. Another possibility would be to build a getter for the field serviceSettings of the struct SPNEGO, This would allow to solve the integration in an external middleware.

type SPNEGO struct {
    serviceSettings *service.Settings // <- this field needs a getter
    client          *client.Client
    spn             string
}