greatisgreat

greatisgreat

Validate cookie in guardian

Is there a way to validate the cookie instead of validating authorization header in guardian?

thanks

Marked As Solved

Last Post!

calypso

calypso

Hi, I have the exact same issue. I also put the cookie with

Plug.Conn.put_resp_cookie(“guardian_default_token”,token,http_only: true)

But I cannot validate the cookie with this Auth pipeline

defmodule Api.Guardian.AuthPipeline do
use Guardian.Plug.Pipeline, otp_app: :Api,
module: Api.Guardian,
error_handler: Api.AuthErrorHandler
plug :fetch_session
plug Guardian.Plug.VerifySession, key: “guardian_default_token”
plug Guardian.Plug.VerifyCookie
plug Guardian.Plug.EnsureAuthenticated
plug Guardian.Plug.LoadResource
end

Could you possibly provide me some information about the auth pipeline you used?

Thanks

Where Next?

Popular in Discussions Top

CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
nburkley
AWS re:Invent is on at the moment with some interesting announcements. One new feature in particular is the Lambda Runtime API for AWS La...
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
crispinb
On reading dhh’s latest The One Person Framework it strikes me that Phoenix with LiveView is already pretty much this. However, never hav...
New

Other popular topics Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54260 488
New
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

We're in Beta

About us Mission Statement