} = data
} = sl
) do
- {actions, challenge, module} = maybe_challenge(auth, realm, options, session_id, tt, t)
+ {actions, challenge, mod} = maybe_challenge(auth, realm, options, session_id, tt, t)
{:ok,
%SL{
| challenge: challenge,
hello_received: true,
realm: realm,
- authentication_module: module
+ authentication_module: mod
}
}, [{:next_event, :internal, :transition}] ++ actions}
end
transport: tt,
transport_pid: t,
authentication_module: auth,
- challenge: challenge,
+ challenge: %Challenge{extra: challenge},
realm: realm,
name: name,
authenticate: %Authenticate{signature: sig}
t
)
- {[], ch, auth}
+ {[], chal, auth}
false ->
Logger.error("Not a supported authentication method: #{inspect(am)}")
defp maybe_update_response(data, resp), do: {data, resp}
def is_authorized?(am, peer, type, uri, method) do
- am = get_auth_module(am, [method])
- am.authorized?(type, uri, peer)
+ auth = get_auth_module(am, [method])
+ auth.authorized?(type, uri, peer)
end
defp remove_nil_values(message) do