headless_lms_server::domain::authorization

Function authenticate_moocfi_user

Source
pub async fn authenticate_moocfi_user(
    conn: &mut PgConnection,
    client: &OAuthClient,
    email: String,
    password: String,
) -> Result<Option<(User, LoginToken)>>
Expand description

Authenticates the user with mooc.fi, returning the authenticated user and their oauth token.