Function headless_lms_server::domain::authorization::authenticate_moocfi_user
source · pub async fn authenticate_moocfi_user(
conn: &mut PgConnection,
client: &OAuthClient,
email: String,
password: String
) -> Result<(User, LoginToken)>
Expand description
Authenticates the user with mooc.fi, returning the authenticated user and their oauth token.