Comments (2)
Why worry about the wildapricot token expiry once you've fetched the user details? You can just fetch the user information once, upon completion of the sign-in flow, then maintain a session with the user independent of wildapricot. That's how OIDC works, and I'm sure it's what Wordpress plugins etc. do when integrating with wildapricot. They do call their OAuth server an "SSO" service, after all: I don't think they intended it as a hosted session management solution.
Of course the session needs to follow best practices, in particular it needs to involve some server-side state that can be cleared on sign-out or after maximum session duration (or inactivity). That server side state could be stored in a GenServer or ETS, but I would stick it in the DB.
from website.
@voltone sorry, I pinged you and then I'm quite late to respond. Yeah, we currently operate the way you described above exactly. We of course follow best practices, keep the session in the db, etc.
I suppose we could not depend on the ttl of the token, and instead simply query wildapricot to make sure the user making a request isn't deactivated, has had their role changed, etc.
Edit:
Note that the ttl currently is in line with best practices for low risk apps (15 to 30 minutes). We could increase to 30 minutes. I've always followed (or tried to) these recommendations and usually to the annoyance of others :) However, it makes for a bad UX. If it takes you say over 30 minutes to type something up and click submit, well... you're not going to be happy. Do you feel the owasp recommendation for low risk apps is a bit much?
from website.
Related Issues (20)
- Add free link to recent paper that is already on the Academic Papers section
- Header navigation bar overflows in certain screen sizes HOT 2
- Make Slack Invite Link Easier to Discover
- Add Hank's paper to the list of Academic Papers HOT 1
- Add new academic paper on Elixir HOT 2
- Add "Code Smells in Elixir: Early Results from a Grey Literature Review" to the list of Academic Papers HOT 3
- No SSL for OtoloNetworks (sponsor) website HOT 1
- "Up and running" incomplete? HOT 3
- Cannot submit stipend through the website HOT 2
- Two papers to add to https://erlef.org/academic-papers/ HOT 1
- Add ability to create, update, and delete job posts
- Site down! HOT 7
- Wrong repo link at /wg/libs-and-frameworks HOT 1
- Add support for Preview Cards
- Understanding code smells in Elixir functional language #AcademicPapers
- Code Smells in Elixir: Early Results from a Grey Literature Review #AcademicPapers
- Slack invite to Erlang Ecosystem Foundation HOT 1
- Sponsors doesn't load for me? HOT 2
- Add post: Leveraging Erlang for Enhanced Fault Tolerance and Productivity in Space Applications: Insights from the GRiSP Platform
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 website.