# OAuth 2.0 Username-Password Flow in mautic

**URL:** https://forum.mautic.org/t/oauth-2-0-username-password-flow-in-mautic/10220
**Category:** General Discussion
**Created:** [February 12, 2018, 2:17am UTC](https://forum.mautic.org/t/oauth-2-0-username-password-flow-in-mautic/10220 "2018-02-12T02:17:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![arh922](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@arh922](https://forum.mautic.org/u/arh922)
#### Post date: [February 12, 2018, 2:17am UTC](https://forum.mautic.org/t/oauth-2-0-username-password-flow-in-mautic/10220/1 "2018-02-12T02:17:31Z")

</div>

Hi,

I have single page application and I want to integrate Mautic with it so I need to use Mautic APIs, so when the client side call the api first time the mautic will redirect it to login page to auth, but i do not want this way I want to pass username and password to get access token,  
So the question now is: Can I get access token for Mautic APIs without redirect to login page to get authentication, So I can pass the username and password to /authorize end point.

Thanks,  
Ayman

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [October 17, 2019, 4:34pm UTC](https://forum.mautic.org/t/oauth-2-0-username-password-flow-in-mautic/10220/2 "2019-10-17T16:34:34Z")

</div>


