1
 2
 3
 4
 5
 6
 7
 8
 9
10
use crate::error::Error;
use crate::messages::Dict;

pub trait AuthMethod {
    fn auth_method(&self) -> &str;

    fn challenge(&mut self, auth_id: &str, extra: &Dict) -> Result<(String, Dict), Error>;
}

pub mod wampcra;