You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just trying to wrap my head around these concepts. What I want to do is this:
I want to receive headers that contain authorisation information. And then I have a class that connects to an external source using different authorisation information based on what my Leaf app receives.
So what I imagine would be best to do is:
Have a middleware that checks authorisation and somehow holds that info
Initialise a controller that gets the autorisation info from my middleware.
Sounds easy.
What I find difficult is:
How can the middelware save variables and pass them to the controller?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm just trying to wrap my head around these concepts. What I want to do is this:
I want to receive headers that contain authorisation information. And then I have a class that connects to an external source using different authorisation information based on what my Leaf app receives.
So what I imagine would be best to do is:
Sounds easy.
What I find difficult is:
How can the middelware save variables and pass them to the controller?
Beta Was this translation helpful? Give feedback.
All reactions