Comments (6)
Just created #102 to briefly explain how to use this package with APIs. Nothing biggie, just a clarification.
from auth_plug.
@LuchoTurtle great question, thank you for asking/opening it.
Iβve wondered the same in the past and opted for allowing each consuming app to implement the :fetch_session but if there was no negative side effect of doing it in auth_plug is be happy to include it in the library.
from auth_plug.
I've pondered about this and tried to find a way to handle this but perhaps it's best for the user to do the fetching of the session themselves.
Auth_plug shouldn't fetch the session just to verify if it exists. This will cause fetching the session two times when using a browser pipeline, which is not really bueno.
from auth_plug.
Exactly. Thanks for confirming.
from auth_plug.
@LuchoTurtle do you want to add a brief section on how to use auth_plug
in an API
pipeline to the README.md
?
from auth_plug.
Thanks very much @LuchoTurtle
from auth_plug.
Related Issues (20)
- Docs: Add section on @dependabot environment variable access HOT 3
- Chore: Strip `JWT` from URL once authenticated
- Update Instructions for Getting AUTH_API_KEY HOT 2
- Optional Auth HOT 1
- Cookie βSameSiteβ attribute set to βNoneβ (soon to be rejected)
- Update Dependencies HOT 2
- is_nil never works in get_token_from_header HOT 2
- Check for `end_session` errors HOT 6
- Update Logout HTTP Request METHOD from GET to POST HOT 4
- Create `get_auth_url` public function HOT 2
- Reponse 200 on logout? HOT 3
- SETUP MODE: Don't throw Error when `AUTH_API_KEY` is not set HOT 3
- Update Dependencies via Dependabot π€
- Revert `Token.api_key/0` to use `Envar.get` HOT 2
- Exporting env variable appears erronous HOT 5
- Plug dependency might be a blocker when importing auth_plug in new projects HOT 12
- warning: `Application.get_env/2` discouraged use `Application.compile_env/3` instead HOT 2
- key `:loggedin` not found in `assigns` HOT 2
- Create Helper Method for adding `person` and `loggedin` to `socket` `assigns` HOT 5
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 auth_plug.