Jakarta: When Prime Minister Scott Morrison flies in to Jakarta this weekend to attend the second inauguration of President Joko Widodo, he'll heap praise on Indonesia's popularly elected leader.

Joko won re-election back in April with about 55 per cent of the popular vote, defeating his opponent Prabowo Subianto for the second time in a row.

Prime Minister Scott Morrison meets with President of Indonesia Joko Widodo at the G20 in June. Credit:Alex Ellinghausen

For more than a decade, successive Australian prime ministers have lavished praise on Indonesia and its leaders for the successful transition to democracy that has taken place since the fall of former dictator Soeharto and the post-1998 reformasi.

Indonesia, we are told, is the most populous Muslim nation in the world. It's pluralist, tolerant, its constitution embraces major religions and it's a crucial partner in tackling extremist Islam.