Hi all,
I am trying to combine authboss into a popular upcoming Go web-framework, Fiber and GORM to improve my current authentication implementation.
Fiber was built with FastHTTP as its core component with the ease-of-use and API-compatibility in mind of express.
Fiber has it's own session package, based on FastHTTP's session package.
Also, Fiber has developed methods to set and retrieve cookie values.
However, when creating the required SessionState and CookieState storage configuration objects, I figured the ClientStateReadWriter interface only allows Reading and Writing the default http Request and Response package; https://github.com/volatiletech/authboss/blob/master/client_state.go#L79
I would love to implement Fiber's official session middleware and cookie methods to use authboss for authentication, but I have no clue on where to start regarding the implementation of the SessionState and CookieState or maybe I am even the purpose of the Middleware2() method.
I have started development for this implementation on the develop branch of my personal repo.
Would you be able to give me a better approach into creating a flawless integration for the authboss package, using Fiber's Ctx (Context) object and it's session middleware?
Thanks so much in advance, I would really love to collaborate on this further!
Hi all,
I am trying to combine authboss into a popular upcoming Go web-framework, Fiber and GORM to improve my current authentication implementation.
Fiber was built with FastHTTP as its core component with the ease-of-use and API-compatibility in mind of express.
Fiber has it's own session package, based on FastHTTP's session package.
Also, Fiber has developed methods to set and retrieve cookie values.
However, when creating the required
SessionStateandCookieStatestorage configuration objects, I figured theClientStateReadWriterinterface only allows Reading and Writing the defaulthttpRequest and Response package; https://github.com/volatiletech/authboss/blob/master/client_state.go#L79I would love to implement Fiber's official session middleware and cookie methods to use authboss for authentication, but I have no clue on where to start regarding the implementation of the
SessionStateandCookieStateor maybe I am even the purpose of theMiddleware2()method.I have started development for this implementation on the develop branch of my personal repo.
Would you be able to give me a better approach into creating a flawless integration for the authboss package, using Fiber's
Ctx(Context) object and it's session middleware?Thanks so much in advance, I would really love to collaborate on this further!