# Prompt for Authentication

**URL:** <https://community.postman.com/t/prompt-for-authentication/71>\
**Category:** Help Hub\
**Tags:** authentication, password\
**Created:** [October 30, 2017, 8:45pm UTC](https://community.postman.com/t/prompt-for-authentication/71 "2017-10-30T20:45:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![23948oa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/23948oa/32/37_2.png) [@23948oa](https://community.postman.com/u/23948oa)\
**Post date:** [October 30, 2017, 8:45pm UTC](https://community.postman.com/t/prompt-for-authentication/71/1 "2017-10-30T20:45:50Z")

</div>

It might already be intended by what is described here:  
https://trello.com/c/Leg6a4Du.html

But here’s my ask:

- In the “Manage Environments” screen, be able to set certain fields as “Prompt”, rather than entering a static value in the Value column. For fields set this way, when the user hits ‘Send’, show a prompt for the user to enter a value. This value is cached (though not displayed) for the duration of the session.
- This is particularly useful for fields like Password that should not be stored

Thank you!

---

<div class="post-metadata">

**Author:** ![abhinav](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/abhinav/32/8_2.png) [@abhinav](https://community.postman.com/u/abhinav)\
**Post date:** [October 31, 2017, 4:42am UTC](https://community.postman.com/t/prompt-for-authentication/71/2 "2017-10-31T04:42:45Z")

</div>

That’s an interesting idea. We have avoided adding prompts because one can really destroy the UX of testing through unwanted prompts. Also, this has other issues with respect to data types - sometimes values are not strings. Any other use cases that you can highlight?

---

<div class="post-metadata">

**Author:** ![23948oa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/23948oa/32/37_2.png) [@23948oa](https://community.postman.com/u/23948oa)\
**Post date:** [November 2, 2017, 9:26pm UTC](https://community.postman.com/t/prompt-for-authentication/71/3 "2017-11-02T21:26:28Z")

</div>

Thanks Abhinav! Totally understand the reluctance to add prompts that could disrupt the flow when using Postman for testing. I think the UX risk here can be mitigated in a few ways:

1. In the Manage Environments screen, make it so that the user would have to explicitly set a given field to “Prompt” if they wanted to be prompted for the value at run time. In this way, you’re handing control to the user to make the decision on what kind of UX they want to have.
2. Don’t make the prompts modal. This way, if the user forgot to enter a promptable value, focus isn’t stolen. This also makes it trivial for you to have promptable fields that are mandatory and fields that are optional.

Couple of other use cases besides passwords that I think of:

- Make it simpler for maintainers of API documentation to roll out Postman collections to developers/users in their organization. For instance, when I onboard a new QA tester today, I have to teach them how to manipulate the environments to (for instance) populate the JWT they get back after going through the authentication step of our API flow. With prompts, I could just roll out the collections and the QA tester would receive the prompt interactively.
- Make it simpler to change data on each call to the API. For instance, if I was entering names into database via an API call, I could simply enter a new name into the prompt each time I hit the Run button.

Related items:

> <https://github.com/postmanlabs/postman-app-support/issues/285>
>
> It would be useful to me if you could prompt for input when an environment variable (in {{variable}} syntax) is encountered....

  

> <https://github.com/postmanlabs/postman-app-support/issues/3367>
>
> App Details:
> Version 5.1.3 (5.1.3)
> MAC 10.12.6 Sierra
> Issue Report:
> I am using MAC Postman APP. While sending requests from POSTMAN APP, some of the...

  

> <https://github.com/postmanlabs/postman-app-support/issues/2935>
>
> Working around #2934 requires OAUTH2 endpoint URIs, client IDs, client secrets, and the eventual access\_token itself to be held in the...

  

> <https://github.com/postmanlabs/postman-app-support/issues/2887>
>
> There is this feature request #2865 which I would like to expand on.
> Any variables that are used in the host (including...

Thank you!

---

<div class="post-metadata">

**Author:** ![abhinav](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/abhinav/32/8_2.png) [@abhinav](https://community.postman.com/u/abhinav)\
**Post date:** [November 6, 2017, 3:39pm UTC](https://community.postman.com/t/prompt-for-authentication/71/4 "2017-11-06T15:39:52Z")

</div>

Agreed. Thanks for the detailed comment. We have been thinking of a separate tab called “Variables” that comes in the Postman editor. That will let you edit all variable values in one place and prompt for unfilled values. I am thinking that there might be a way to combine that with the use cases that you mentioned.

---

<div class="post-metadata">

**Author:** ![rollertone](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@rollertone](https://community.postman.com/u/rollertone)\
**Post date:** [December 28, 2017, 5:31am UTC](https://community.postman.com/t/prompt-for-authentication/71/5 "2017-12-28T05:31:15Z")

</div>

+1000

The ability to provide credentials (or any sensitive data) at runtime, rather than storing them in Postman files would be a huge benefit to the tool. No one should be storing credentials in a file - even if they are not production credentials.

---

<div class="post-metadata">

**Author:** ![tkeating](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tkeating/32/668_2.png) [@tkeating](https://community.postman.com/u/tkeating)\
**Post date:** [June 12, 2018, 5:23pm UTC](https://community.postman.com/t/prompt-for-authentication/71/6 "2018-06-12T17:23:06Z")

</div>

As a (possibly easier and less controversial) first step, how about permitting users to set variable fields (global, environment, collection etc.) as a password type, and not revealing their contents in plain text? Or, since there’s no place in the UI currently to set a param’s type, you could automagically do this if the name of the field is “password.”

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 9, 2024, 2:34pm UTC](https://community.postman.com/t/prompt-for-authentication/71/7 "2024-12-09T14:34:46Z")

</div>

Closed on December 9, 2024, 2:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
