# Best way to pass parameters into a adminAuth plugin

**URL:** <https://discourse.nodered.org/t/best-way-to-pass-parameters-into-a-adminauth-plugin/9404>\
**Category:** General\
**Created:** [25 March 2019 15:33 UTC](https://discourse.nodered.org/t/best-way-to-pass-parameters-into-a-adminauth-plugin/9404 "2019-03-25T15:33:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustinw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dustinw/32/3426_2.png) [@dustinw](https://discourse.nodered.org/u/dustinw)\
**Post date:** [25 March 2019 15:33 UTC](https://discourse.nodered.org/t/best-way-to-pass-parameters-into-a-adminauth-plugin/9404/1 "2019-03-25T15:33:18Z")

</div>

A request for some advice:

My team is working on a custom-user-authentication plugin for the adminAuth setting as per: [https://nodered.org/docs/security#custom-user-authentication](https://nodered.org/docs/security#custom-user-authentication)

If we want the plugin to be reusable, is there a best practice for passing in parameters (e.g. api token, or group lists)?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 March 2019 16:12 UTC](https://discourse.nodered.org/t/best-way-to-pass-parameters-into-a-adminauth-plugin/9404/2 "2019-03-25T16:12:55Z")

</div>

Have you looked at the Twitter and GitHub Auth plugins we provide? In absence of anything else, they would be the best practice examples we have.

---

<div class="post-metadata">

**Author:** ![dustinw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dustinw/32/3426_2.png) [@dustinw](https://discourse.nodered.org/u/dustinw)\
**Post date:** [25 March 2019 17:42 UTC](https://discourse.nodered.org/t/best-way-to-pass-parameters-into-a-adminauth-plugin/9404/3 "2019-03-25T17:42:20Z")

</div>

Thanks! I had forgot that those examples existed. We'll use that as a starting point.
