Also, if we provide the redirect_uri parameter, it's actually ignored, and the standard one is being used. It happens because of the callback_url(conn) function here: https://github.com/joshuataylor/ueberauth_esi/blob/master/lib/ueberauth/strategy/esi.ex#L95. Note that this behaviour is driven by the send_redirect_uri flag, which is not documented (maybe it is in UeberAuth ?).
By default the package is configured to use:
But, apparently, we can use
redirect_uri
in the config to ask for a different callback. It is anyway little smoky, since the docs state (https://github.com/joshuataylor/ueberauth_esi/blob/master/lib/ueberauth/strategy/esi/oauth.ex#L47) that this is working only outside of the normal callback phase of the strategy.Also, if we provide the
redirect_uri
parameter, it's actually ignored, and the standard one is being used. It happens because of thecallback_url(conn)
function here: https://github.com/joshuataylor/ueberauth_esi/blob/master/lib/ueberauth/strategy/esi.ex#L95. Note that this behaviour is driven by thesend_redirect_uri
flag, which is not documented (maybe it is in UeberAuth ?).Is this working as intended ?