# Web style login for OIDC/OAuth2 services

**URL:** <https://community.homey.app/t/web-style-login-for-oidc-oauth2-services/49989>\
**Category:** Developers\
**Created:** [August 1, 2021, 10:40pm UTC](https://community.homey.app/t/web-style-login-for-oidc-oauth2-services/49989 "2021-08-01T22:40:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyrcio](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kyrcio/32/10170_2.png) [@Kyrcio](https://community.homey.app/u/Kyrcio)\
**Post date:** [August 1, 2021, 10:40pm UTC](https://community.homey.app/t/web-style-login-for-oidc-oauth2-services/49989/1 "2021-08-01T22:40:15Z")

</div>

Is it possible to, during device add, pop up a web browser to do an OIDC sign in and extract the generated JWT from the cookies/response headers? I did not find an obvious way to do it and I want to know if it is feasible before spending more time on it. The idea is to build an integration to a service that does not really play nice with plain username/password

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [August 2, 2021, 4:46am UTC](https://community.homey.app/t/web-style-login-for-oidc-oauth2-services/49989/2 "2021-08-02T04:46:15Z")

</div>

Have you look at the default module Athom provided fot OAuth2?

> **[OAuth2](https://apps.developer.homey.app/cloud/oauth2)**
>
> Authorise Homey to use a Web API with OAuth2.

Should be customizable in many ways.

---

<div class="post-metadata">

**Author:** ![Kyrcio](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kyrcio/32/10170_2.png) [@Kyrcio](https://community.homey.app/u/Kyrcio)\
**Post date:** [August 2, 2021, 6:34am UTC](https://community.homey.app/t/web-style-login-for-oidc-oauth2-services/49989/3 "2021-08-02T06:34:59Z")

</div>

Thanks, I got fooled by the screenshots and quickly discarded it as doing the other way around, but that looks like it could be the way to go. I need to investigate if it can solve the task at hand, but thanks for the pointer.
