# Authorization without login

**URL:** https://forum.mautic.org/t/authorization-without-login/7251
**Category:** Development
**Created:** [January 21, 2017, 2:32pm UTC](https://forum.mautic.org/t/authorization-without-login/7251 "2017-01-21T14:32:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![italoborges](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@italoborges](https://forum.mautic.org/u/italoborges)
#### Post date: [January 21, 2017, 2:32pm UTC](https://forum.mautic.org/t/authorization-without-login/7251/1 "2017-01-21T14:32:07Z")

</div>

Hello, I’m new in Mautic and I’m trying to make a connection with the API through my application.  
  
The problem is how to do this connection without show the login page to authorize the user?  
  
  
  
I would like to do everything with AJAX, transparent to the user.  
  
  
  
Searching inside Mautic documentation I found this:

Code:

POST /oauth/v1/request\_token Authorization: OAuth oauth\_callback="https%3A%2F%2Fyour-callback-uri.com", oauth\_consumer\_key="CONSUMER\_KEY", oauth\_nonce="UNIQUE\_STRING", oauth\_signature="GENERATED\_REQUEST\_SIGNATURE", oauth\_signature\_method="HMAC-SHA1", oauth\_timestamp="1318467427", oauth\_version="1.0"

  
If I tried to send a get request with this data, I got all the time error.  
Could someone explain me a little bit what am I doing wrong?  
  
Thanks

---

<div class="post-metadata">

### Author: ![italoborges](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@italoborges](https://forum.mautic.org/u/italoborges)
#### Post date: [January 21, 2017, 2:32pm UTC](https://forum.mautic.org/t/authorization-without-login/7251/2 "2017-01-21T14:32:07Z")

</div>

Hello, I’m new in Mautic and I’m trying to make a connection with the API through my application.  
The problem is how to do this connection without show the login page to authorize the user?

I would like to do everything with AJAX, transparent to the user.

Searching inside Mautic documentation I found this:

`POST /oauth/v1/request_token
Authorization: 
        OAuth oauth_callback="https%3A%2F%2Fyour-callback-uri.com",
              oauth_consumer_key="CONSUMER_KEY",
              oauth_nonce="UNIQUE_STRING",
              oauth_signature="GENERATED_REQUEST_SIGNATURE",
              oauth_signature_method="HMAC-SHA1",
              oauth_timestamp="1318467427",
              oauth_version="1.0"`

If I tried to send a get request with this data, I got all the time error.  
Could someone explain me a little bit what am I doing wrong?

Thanks
