# Available parameters for AUTH and EXT in cwmp.auth (v1.2.8)

**URL:** <https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814>\
**Category:** Uncategorized\
**Created:** [July 29, 2022, 4:12pm UTC](https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814 "2022-07-29T16:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcabanaw](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/dcabanaw/32/921_2.png) [@dcabanaw](https://forum.genieacs.com/u/dcabanaw)\
**Post date:** [July 29, 2022, 4:12pm UTC](https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814/1 "2022-07-29T16:12:28Z")

</div>

When a CPE authenticates, I’m trying to make some decisions based on several pieces of information.

For example in `cwmp.auth` I have:

```auto
AUTH("cwmp-user", EXT("authenticate", "authorize", DeviceID.SerialNumber, Tags.Onboarding, Tags.Provisioning, Tags.Provisioned))

```

Which works, but I would like to make decisions in the extension script that will need to be based on the request, possibly the following:

- standard and custom HTTP headers
  - `x-forwarded-for`, etc…

- the current inform event
- the username and password sent (basic auth)

Are there parameters or variables available to be passed into the `EXT()` script that could accomplish this?

Thanks!

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [August 10, 2022, 10:20pm UTC](https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814/2 "2022-08-10T22:20:50Z")

</div>

It’s not possible to access the request headers unfortunately, but you can get the IP of the CPE using the function ‘REMOTE\_ADDRESS()’. This works even if you have Genie behind a proxy, provided that the proxy server passes the standard ‘Forwarded’ header and Genie is configured to trust it.

---

<div class="post-metadata">

**Author:** ![mstrolo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mstrolo/32/941_2.png) [@mstrolo](https://forum.genieacs.com/u/mstrolo)\
**Post date:** [August 11, 2022, 6:35am UTC](https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814/3 "2022-08-11T06:35:31Z")

</div>

if i put CWMP.auth only on true i get the device online but nothing works shows online but then inside its offline.

can this be the reason?

```auto
AUTH("cwmp-user", EXT("authenticate", "authorize", DeviceID.SerialNumber, Tags.Onboarding, Tags.Provisioning, Tags.Provisioned))
```

---

<div class="post-metadata">

**Author:** ![dcabanaw](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/dcabanaw/32/921_2.png) [@dcabanaw](https://forum.genieacs.com/u/dcabanaw)\
**Post date:** [August 11, 2022, 12:57pm UTC](https://forum.genieacs.com/t/available-parameters-for-auth-and-ext-in-cwmp-auth-v1-2-8/2814/4 "2022-08-11T12:57:37Z")

</div>

Thanks for the info about `REMOTE_ADDRESS()`. This may be enough for what we want to accomplish.
