def account_info(info):
    """Extract user information from IdP response."""
    return dict(
        user=dict(
            email=info["User.email"][0],
            profile=dict(
                username=info["User.FirstName"][0], full_name=info["User.FirstName"][0]
            ),
        ),
        external_id=info["User.email"][0],
        external_method="onelogin",
        active=True,
    )