Add support for OAuth 2.0 / OpenID Connect
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to request a feature or enhancement and not ask a question
The problem
Add support for OAuth 2.0 / OpenID Connect to enable unified logins within a company
Proposed solution
Add the option to configure the OAuth 2.0 / OpenID Connect identity provider
Alternatives considered and additional information
No response
Why?
It's a local adblocker so should use local credentials
@Dynamic5912 Local doesn't necessarily mean single-user. Many people run AdGuard Home in a homelab alongside other self-hosted services that already sit behind an identity provider like Authentik, PocketID, Keycloak or Authelia. OIDC support would bring a few concrete benefits:
One login across services: AdGuard Home would fit into an existing SSO setup instead of being the odd one out with its own credentials. No shared passwords: If several people manage the instance, each can log in with their own account instead of sharing one admin password - for example to disable ad-protection for a short time. MFA and central access control: MFA, password policies and revoking access are handled once in the IdP, which AdGuard Home doesn't currently offer itself.
Local credentials should of course stay available as a fallback, e.g. when the IdP is unreachable, since DNS is often a dependency of the IdP itself. OIDC would be an optional addition, not a replacement.
@Dynamic5912 to use as DoH/DoT it requires to be exposed to internet, not only internal. OIDC would be a good addition for security.
User/pass only can be an security issue, it can be brute forced
@Dynamic5912 to use as DoH/DoT it requires to be exposed to internet, not only internal. OIDC would be a good addition for security.
User/pass only can be an security issue, it can be brute forced
Errr no.
To send DNS to a DoH or DoT resolver doesn't require AGH to be exposed to WAN.
7. > @Dynamic5912 to use as DoH/DoT it requires to be exposed to internet, not only internal. OIDC would be a good addition for security. > User/pass only can be an security issue, it can be brute forced
Errr no. To send DNS to a DoH or DoT resolver doesn't require AGH to be exposed to WAN.
How? This official web blog is a little bit outdated but main principes are well explained to set a public server. DoT and DoH must be exposed publicly. If you think to a VPN solution, this is not a good one IMHO. AdGuardHome has a little security setting: if you enter too much wrong password, you will be temporarily ban.
Implementing Single Sign-On (SSO) for single login is a valuable addition to enhance security and provide support for 2fa.
7. > @Dynamic5912 to use as DoH/DoT it requires to be exposed to internet, not only internal. OIDC would be a good addition for security. > User/pass only can be an security issue, it can be brute forced
Errr no. To send DNS to a DoH or DoT resolver doesn't require AGH to be exposed to WAN.How? This official web blog is a little bit outdated but main principes are well explained to set a public server. DoT and DoH must be exposed publicly. If you think to a VPN solution, this is not a good one IMHO. AdGuardHome has a little security setting: if you enter too much wrong password, you will be temporarily ban.
Why would you expose it publicly?
Using a VPN is the best way.
10. > > 7. > @Dynamic5912 to use as DoH/DoT it requires to be exposed to internet, not only internal. OIDC would be a good addition for security. > > > User/pass only can be an security issue, it can be brute forced > >
> > Errr no. > > To send DNS to a DoH or DoT resolver doesn't require AGH to be exposed to WAN. > >> > > How? > This official web blog is a little bit outdated but main principes are well explained to set a public server. > DoT and DoH must be exposed publicly. > If you think to a VPN solution, this is not a good one IMHO. > AdGuardHome has a little security setting: if you enter too much wrong password, you will be temporarily ban.Why would you expose it publicly? Using a VPN is the best way.
In my case, I am not the only one to use AGH but all my family too. If I provide a VPN connection to my server, all the trafic will pass through my server, which I don't really want for bandwidth reason, and because it will require a more complex setup for high availability... I created profiles for all devices's family members (iPhone, Android, Linux, Windows...). AGH is able to work fine for this usage, and far more devices. Add 2FA security (with TOTP) can be a nice feature for AGH, as HTTPS admin port is the same for DoH. You must expose it publicly. Another possibility should be to allow the usage of another port dedicated to web administration console. In this case, you will be able to administrate your instance using a VPN connection, or directly from LAN.
So change the port number then?
12. So change the port number then?
🤔 If you change the HTTPS port, DoH will also listen on this one, which is not fine. The goal is to set an administration console port different than the one used for DoH. In the same way, the port 3000 is used for the initial setup only and not 80 (unencrypted).
To come back to the initial request, it will be nice to have a 2FA authentication method available 😊
🤔 If you change the HTTPS port, DoH will also listen on this one, which is not fine. The goal is to set an administration console port different than the one used for DoH. In the same way, the port 3000 is used for the initial setup only and not 80 (unencrypted).
Why do not you use a reverse-proxy for you DoH and authentication? You would have by far more flexibility.