Session and Cookie ClientStateRW implementations using Gorilla.
Assuming you're using Gorilla in your web application you can easily use this package to augment Gorilla to be used with authboss or use this package's wrappers directly.
Provides gorilla based session and cookie handling for authboss
License: MIT License
https://github.com/volatiletech/authboss-clientstate/blob/master/sessions.go#L60
I presume this should be return nil, err
Starting the datastore emulator with:
$ dev_appserver.py app.yaml
throws an error that http.SameSite can't be found.
ERROR 2019-09-19 21:54:19,563 instance_factory.py:243] Failed to build Go application: (Executed command: /Users/x/google-cloud-sdk/platform/google_appengine/goroot-1.9/bin/go-app-builder -app_base /Users/x/Dropbox/go/src/authboss-sampleGAE -api_version go1 -arch 6 -dynamic -goroot /Users/x/google-cloud-sdk/platform/google_appengine/goroot-1.9 -nobuild_files ^^$ -incremental_rebuild -unsafe -binary_name _go_app -extra_imports appengine_internal/init -work_dir /var/folders/mw/0y88j8_54bjc93d_lg3120qw0000gp/T/tmpMREYx9appengine-go-bin -gcflags -I,/Users/x/google-cloud-sdk/platform/google_appengine/goroot-1.9/pkg/darwin_amd64_appengine -ldflags -L,/Users/Bryan/google-cloud-sdk/platform/google_appengine/goroot-1.9/pkg/darwin_amd64_appengine storer.go debug.go blog.go blogs.go middleware.go)
/Users/x/go/src/github.com/volatiletech/authboss-clientstate/cookies.go:37:11: undefined: http.SameSite
"net/http" is clearly imported on line 4 of cookies.go
Why is http.SameSite undefined?
https://github.com/volatiletech/authboss-clientstate/blob/master/sessions.go#L72
You should basically never do a type conversion without the , ok
pattern. This method even already returns an error, so it would be trivial to just return an error that the type is unexpected.
I hit this in trying to get around volatiletech/authboss#181 by just allowing the state to be set to nil... but then it panics here. Clearly the state shouldn't be nil... but there's also no reason not to do the checked type conversion.
What do you think about this?
[13:24:14.383] failed to build, error: stderr: # github.com/volatiletech/authboss-clientstate
..\..\..\..\go\pkg\mod\github.com\volatiletech\[email protected]\sessions.go:113:8: undefined: authboss.ClientStateEventDelAll
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.