# Does Logstash8.0 support modern authentication to access Outlook with token?

**URL:** <https://discuss.elastic.co/t/does-logstash8-0-support-modern-authentication-to-access-outlook-with-token/299278>\
**Category:** Logstash\
**Created:** [March 10, 2022, 2:35am UTC](https://discuss.elastic.co/t/does-logstash8-0-support-modern-authentication-to-access-outlook-with-token/299278 "2022-03-10T02:35:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Jia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albert_jia/32/102845_2.png) [@Albert\_Jia](https://discuss.elastic.co/u/Albert_Jia)\
**Post date:** [March 10, 2022, 2:35am UTC](https://discuss.elastic.co/t/does-logstash8-0-support-modern-authentication-to-access-outlook-with-token/299278/1 "2022-03-10T02:35:44Z")

</div>

```auto
input {
    imap {
        host => "outlook.office365.com"
        user => "$USER"
        password => "$PASSWORD"
        port => $PORT
        folder => "Inbox"
    }
}

```

Currently I'm using username/password way to pulling mails from mailbox per the documentation. Just wanna ask dose Logstash support using tokens to access Outlook?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 7, 2022, 2:36am UTC](https://discuss.elastic.co/t/does-logstash8-0-support-modern-authentication-to-access-outlook-with-token/299278/2 "2022-04-07T02:36:31Z")

</div>

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