@Binh Hua , Unfortunately, there is no way to surpass the dialog box asking the user to enter the username and password since that Authorization Code Grant Flow requires interactive logon. For issuing the code from the /authorize endpoint the interactive logon is mandatory. This is how the protocol works.
Hope this helps. Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.