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
Guardian.Plug.sign_in(user) calls appear in a number of places in few files. As of now, there does not appear to be a way to add permissions or otherwise customize generated tokens.
Maybe a solution would be factoring these calls out into something like a TokenMint module?
defmodule TokenMint do
def sign_in(conn, user), do: Guardian.Plug.sign_in(conn, user)
end
A configuration option could be used to replace this with a user supplied module/function/plug that takes the user and uses it to mint a customized token. Would this be a reasonable way of issuing customized tokens in Sentinel?
The text was updated successfully, but these errors were encountered:
@sgeos have you looked at Guardian 1.0? I believe you're talking about token customization as described there? I'm interested in including that kind of functionality, I just want to make sure I understand it fully enough to do a compatible implementation well.
Guardian.Plug.sign_in(user)
calls appear in a number of places in few files. As of now, there does not appear to be a way to add permissions or otherwise customize generated tokens.Maybe a solution would be factoring these calls out into something like a TokenMint module?
A configuration option could be used to replace this with a user supplied module/function/plug that takes the user and uses it to mint a customized token. Would this be a reasonable way of issuing customized tokens in Sentinel?
The text was updated successfully, but these errors were encountered: