Good open source OAuth server

Can anyone advice good OAuth server?

Currently I’m using Gitea as OAuth provider (see my pull request adding Gitea to WriteFreely OAuth), but it lacks scopes support.

What I need is hardware token support (YubiKey/Ledger) and classic TOTP as 2nd factor, scopes and interface customization options. It must be open source or visible source.

I was looking at WP-Oauth and Hydra - anyone have experience with them already?

I decided to give WP-OAuth a try and in parallel continue exploring alternatives.