Comments (1)
Looks reasonable yeap. The way that we implement this is by creating a type that implements the *Storer
interfaces from Authboss and that embeds a models.User
.
type AuthbossUser struct {
*models.User
}
func (a AuthbossUser) PID() string {
return a.Email
}
...
from authboss-sample.
Related Issues (20)
- Using this with echo? HOT 4
- CSRF token stays valid trough-out multiple requests. Intended? HOT 1
- Not redirecting after login HOT 1
- mailer setup problem HOT 1
- When flagAPI is on, cannot confirm by clicking confirming url HOT 5
- Change routing with gorilla mux HOT 1
- Bug occur when server restarts and browser sends back session data HOT 1
- cryptographically hash passwords HOT 1
- change default password length
- clientstate, sessions.go:113:8: undefined: authboss.ClientStateEventDelAll
- Content-Type application/json error: "failed to redirect user during authboss.Middleware redirect: template for page redirect not found" HOT 7
- Add cookie store Maxage sample to avoid possible misleading. HOT 2
- TwoFactorEmailAuthRequired how to disable? HOT 2
- CookieStorer, SessionStorer invalid types for CookieState, SessionState HOT 1
- RoutesRedirectOnUnauthed is deprecated HOT 1
- Sample tests will help new users effectively use authboss HOT 1
- Any plans to bring this current? I notice it's based on go 1.14?
- login and register submission return blank pages. HOT 2
- Why not authProtect the destroy handler? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authboss-sample.