Function lti::signature[][src]

pub fn signature(
    method: &str,
    uri: &str,
    params: &str,
    consumer_secret: &str,
    token_secret: Option<&str>
) -> String

Generates the signature for a given LTI launch.

Standard details can be found here

method - The HTTP method of the request, generally either GET or POST

uri - The destination uri of the lti launch request. This will generally be the uri of the tool provider lti launch route.

params - The stringified lti_launch parameters. This includes query paramters for a GET request, and form encoded parameters for a POST request. Details can be found here

consumer_secret - The shared secret for the given Tool Consumer

token_secret - Generally not used for lti launch requests. Details can be found here