Hello all the team,
Is there any plans to implement login with device on a self-hosted environment?
Thanks in advance for the reply,
Best regards,
Marc
cksapp
(Kent)
May 24, 2023, 11:31am
2
Hi @Marc78 ,
See my recent comment
Hi @lime and welcome to the community,
Once the Pull Request for self-hosted has been merged this should be included in a following release. My guess would be it may make it into the 2023.5 or 2023.6 release most likely
TL;DR The team is already working to release this one and should be merged and included in a upcoming release hopefully soon.
bitwarden:master
← bitwarden:PM-1101-passwordless-on-self-hosted
opened 08:48PM - 12 May 23 UTC
## Type of change
```
- [ ] Bug fix
- [X] New feature development
- [ … ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```
## Objective
We currently do not allow self-hosted customers to use Login with Device. This is due to our notifications not working on self-hosted. We have addressed this with https://github.com/bitwarden/server/pull/2934. This change is to remove the client-side checks that prevented the button from displaying.
## Code changes
- **/desktop/src/auth/login/login.component.ts** Replaced `checkSelfHosted()` checks with an explicit `getLoginWithDevice()` call, as that is the only remaining functionality in the `checkSelfHosted()` method
- **/libs/angular/src/auth/components/login.component.ts** Removed check for self-hosted from `getLoginWithDevice()`
- **selfhosted.json** Changed `showPasswordless` to `true` for self-hosted web client.
## Before you submit
- Please add **unit tests** where it makes sense to do so (encouraged but not required)
- If this change requires a **documentation update** - notify the documentation team
- If this change has particular **deployment requirements** - notify the DevOps team
- Ensure that all UI additions follow [WCAG AA requirements](https://contributing.bitwarden.com/contributing/accessibility/)
Marc78
May 24, 2023, 11:57am
3
Thank you for the feedback return
lxne
(Alex)
October 29, 2023, 6:08pm
5
Should login with device work on self-hosted bitwarden 2023.8.2?
Because it doesn’t for me.
The request shows up on my device and I can accept it but the other client is not recognizing it.
It doesn’t work for me either on a self-hosted docker deployment.
I’m running 2023.10.2.
I’m seeing this in the Browser Console:
Firefox can’t establish a connection to the server at wss://bw3344.myserver.com/notifications/anonymous-hub?Token=6da273b0-7427-4b6f-b61d-b06642665211.
I figured it out. My BW was behind an nginx Reverse Proxy. I had to enable WebSockets Support in the Nginx Reverse Proxy GUI.
It works now.
lxne
(Alex)
November 21, 2023, 8:17pm
8
With Bitwarden 2023.10.1 it now works for me too!
Thanks to whoever is responsible.