# Http request intercept before login page or login authentication without password

**URL:** https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243
**Category:** Troubleshooting
**Created:** [June 29, 2018, 4:58am UTC](https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243 "2018-06-29T04:58:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bje](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bje](https://forum.mattermost.com/u/bje)
#### Post date: [June 29, 2018, 4:58am UTC](https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243/1 "2018-06-29T04:58:26Z")

</div>

hi, I’m wondering that I want to authenticate(make MMAUTHTOKEN and MMUSERID) without password, (I already saw “[https://api.mattermost.com](https://api.mattermost.com)”)

for example, some site give some header cookie for me, this cookie like a username or user id…  
so, i want to modify some source code like login process

this step is,

1. they give some cookie information for me, i want to intercept login request then, i want to redirect to sso, if header cookie is empty

2. so, that mean’s i need to modify source code like login source code

3. if header cookie is not empty, i want use cookie value(like username) to authenticate(make MMAUTHTOKEN and MMUSERID) for mattermost without password

so, is it possible?

if it’s possilbe…  
i want to know that how to process it…

thanks

---

<div class="post-metadata">

### Author: ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)
#### Post date: [June 29, 2018, 10:06pm UTC](https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243/2 "2018-06-29T22:06:58Z")

</div>

Hi @bje! Thank you for reporting this.

Can you share more details on the use case?

Can you also share what Mattermost server version you are using?

---

<div class="post-metadata">

### Author: ![bje](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bje](https://forum.mattermost.com/u/bje)
#### Post date: [July 1, 2018, 1:15am UTC](https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243/3 "2018-07-01T01:15:46Z")

</div>

Thanks for answer @amy.blais

My Mattermost version is 4.10 and

i will install & update 5.0

---

<div class="post-metadata">

### Author: ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)
#### Post date: [July 4, 2018, 5:00pm UTC](https://forum.mattermost.com/t/http-request-intercept-before-login-page-or-login-authentication-without-password/5243/4 "2018-07-04T17:00:53Z")

</div>

Hi @bje I found this thread that might help: [[SOLVED] Login to Mattermost from browser by skipping the login form](https://forum.mattermost.com/t/solved-login-to-mattermost-from-browser-by-skipping-the-login-form/3468)

If it doesn’t help just let me know and I can ask our engineers if they know the answers. I know you already posted in the Peer-to-peer Help channel earlier so I’m planning to post about it also in [API channel](https://pre-release.mattermost.com/core/channels/apiv4).
