# Microsoft Authentication - Interactive login not working correctly

**URL:** <https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564>\
**Category:** KNIME Extensions\
**Tags:** bug\
**Created:** [August 24, 2021, 3:11pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564 "2021-08-24T15:11:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![datanumbers](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@datanumbers](https://forum.knime.com/u/datanumbers)\
**Post date:** [August 24, 2021, 3:11pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/1 "2021-08-24T15:11:16Z")

</div>

I’m on Knime 4.4.0.v202106280851 using Power BI Integration 4.4.0.v202106241409.

The node I’m using is the “Microsoft Authentication” using the “Interactive authentication” feature because my organization does not use any other mode.

When I try to login via this way the node errors out with the below message about the “ **Address already in use** ”:

```auto
ERROR Microsoft Authentication 0:1 com.microsoft.aad.msal4j.MsalClientException: Address already in use: bin

```

Can anyone help here? I’m guessing the node will need some update or have a dynamic allocation of the port used?

Thanks in advance!

 ![2021-08-24_11-08-14-3](https://forum-cdn.knime.com/uploads/default/original/3X/5/b/5b9db39a1d1d930a7dc2a501d229462b561802df.png)

---

<div class="post-metadata">

**Author:** ![bruno29a](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bruno29a/32/28802_2.png) [@bruno29a](https://forum.knime.com/u/bruno29a)\
**Post date:** [August 24, 2021, 3:24pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/2 "2021-08-24T15:24:48Z")

</div>

Hi @datanumbers , this is going to be extremely hard to reproduce.

It’s a network issue where the connection did not close properly, and the port is in a `TIME_WAIT` state. It should clear once it times out, so if you try again in a few minutes, it should be ok.

I’m not sure if this type of incident should be handled by Knime - it depends on how this was implemented.

---

<div class="post-metadata">

**Author:** ![datanumbers](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@datanumbers](https://forum.knime.com/u/datanumbers)\
**Post date:** [August 24, 2021, 3:37pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/3 "2021-08-24T15:37:15Z")

</div>

Thanks for looking at it, I do think that the port allocation should be dynamic or let the user to change it to avoid this.

---

<div class="post-metadata">

**Author:** ![jguidera](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@jguidera](https://forum.knime.com/u/jguidera)\
**Post date:** [October 1, 2021, 12:42am UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/4 "2021-10-01T00:42:14Z")

</div>

I don’t think its a time\_wait at all as such wouldn’t persist through several reboots and several hours (in my case its still blocked)… So this is something else alltogether. Anyone know what port its trying to bind to?

---

<div class="post-metadata">

**Author:** ![datanumbers](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@datanumbers](https://forum.knime.com/u/datanumbers)\
**Post date:** [October 1, 2021, 1:39pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/5 "2021-10-01T13:39:16Z")

</div>

I also agree, I’m frustrated that this is not getting the attention it needs to. Hopefully we can raise this even further.

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [October 5, 2021, 10:47am UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/6 "2021-10-05T10:47:55Z")

</div>

Hello @datanumbers,

reset/restore to defaults seems to help out @jguidera in this topic:

> [@Microsoft Authentication throwing "address already in use"](https://forum.knime.com/t/microsoft-authentication-throwing-address-already-in-use/36464/3):
>
> Error comes up immediately upon pressing “login”. A browser window does not launch. I am running the latest Knime (4.4.1). I do not have a proxy enabled/setup (defaults), however I hit the “reset to defaults” and it now seems to be working again (perhaps something screwed up in settings?)

Maybe same could work for you? (Think I have seen same approach helped recently someone else with another issue but can’t find topic now…)

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![datanumbers](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@datanumbers](https://forum.knime.com/u/datanumbers)\
**Post date:** [October 6, 2021, 1:56pm UTC](https://forum.knime.com/t/microsoft-authentication-interactive-login-not-working-correctly/35564/7 "2021-10-06T13:56:14Z")

</div>

Hey thanks for looking at this one, I tried that but **no luck** , I still get the

Address already in use: bind

I also reset my proxy settings from browser but nothing. Here are my Network settings for reference:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/e/eef29df8a8d5bd298602951f4e30869c968ee5eb.png)
