# URI module has not implemented auth yet? Not yet finished?

**URL:** <https://forum.ansible.com/t/uri-module-has-not-implemented-auth-yet-not-yet-finished/24134>\
**Category:** Ansible Project\
**Created:** [April 4, 2017, 3:18am UTC](https://forum.ansible.com/t/uri-module-has-not-implemented-auth-yet-not-yet-finished/24134 "2017-04-04T03:18:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquin\_Menchaca](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Joaquin\_Menchaca](https://forum.ansible.com/u/Joaquin_Menchaca)\
**Post date:** [April 4, 2017, 3:18am UTC](https://forum.ansible.com/t/uri-module-has-not-implemented-auth-yet-not-yet-finished/24134/1 "2017-04-04T03:18:02Z")

</div>

Hello.

I cannot get uri module to do authentication management with user: and password: key:value pairs.

It seems the underlying command does not have the auth info, so it cannot deal with the 401, so the higher level must deal with it. It doesn’t do that, so it looks like the uri module has not implemented it.

Any ETA when basic auth functionality will be implemented?

**FAILING SNIPPET 1**

- name: Get License and Fail  
uri:  
url: [http://127.0.0.1](http://127.0.0.1):{{ rt\_port }}/{{ rt\_route.licenses }}  
method: GET  
user: “{{ rt\_admin.user }}”  
passwd: “{{ rt\_admin.password }}”  
force\_basic\_auth: yes  
return\_content: yes

**ACTUAL RESULTS 1 (FAILURE)**

With forced auth, it tries it immediately, then fails with 401. Without forced auth, tries without any auth, and just completely fails.

Using ngrep:
