Comments (11)
Seeing the following error when attempting to set the Phoenix Session in the auth_plug
:
** (ArgumentError) cannot fetch session without a configured session plug
For context my goal is to create a plug that does everything related to auth
in a Phoenix App.
I might need to make another diagram to explain it.
from auth_plug.
Some useful insight in this question/answer:
https://stackoverflow.com/questions/31983077/how-can-i-set-session-in-setup-when-i-test-phoenix-action-which-need-user-id-in/31983168#31983168
from auth_plug.
** (ArgumentError) session not fetched, call fetch_session/2
from auth_plug.
added plug :fetch_session
to the test server and now see:
** (ArgumentError) cannot fetch session without a configured session plug
from auth_plug.
Reading: https://stackoverflow.com/questions/36694622/sessions-in-phoenix-app sadly not conclusive.
from auth_plug.
** (ArgumentError) cookie store expects :signing_salt as option
from auth_plug.
from auth_plug.
** (ArgumentError) cookie store expects conn.secret_key_base to be set
Argument error driven development ...
from auth_plug.
from auth_plug.
GIF of AUTH_API_KEY
Setup for auth_plug
Example:
from auth_plug.
Try it: https://auth-plug-example.herokuapp.com/admin
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
- Using `authOptional` in `:api` pipelines HOT 6
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.