Get post according to current taxonomy

Try this for WP_Query

$args = array(
'post_type' => 'example',
'tax_query' => array(
    'relation' => 'AND',
    array(
        'taxonomy' => 'identite',
        'field'    => 'ID',
        'terms'    => $term->term_id
         )
    ),
 );// end args

OR

$args = array(
'post_type' => 'example',
'tax_query' => array(
    'relation' => 'AND',
    array(
        'taxonomy' => 'identite',
        'field'    => 'ID',
        'terms'    => array($term->term_id)
         )
    ),
 );// end args

$term is an object and tax_query expects an array of id’s.

See: https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters