Is your feature request related to a problem? Please describe.
Currently, it is only possible to whitelist an entire domain of addresses, which is convenient for organizations, however it is not so convenient for single users wishing to authenticate oAuth on a public domain such as gmail.com.
Describe the solution you'd like
It would be nice if there was a configuration option to specify a list of individual e-mail addresses to whitelist, or a path to a file containing a list of emails to whitelist, in addition to optionally also specifying whitelisted domain(s).
Describe alternatives you've considered
I haven't considered any alternatives whitelisting methods because Google is the only oAuth provider currently supported.
Additional context
This feature was already available in oauth2_proxy via the "authenticated-emails-file" command-line flag.
Is your feature request related to a problem? Please describe.
Currently, it is only possible to whitelist an entire domain of addresses, which is convenient for organizations, however it is not so convenient for single users wishing to authenticate oAuth on a public domain such as gmail.com.
Describe the solution you'd like
It would be nice if there was a configuration option to specify a list of individual e-mail addresses to whitelist, or a path to a file containing a list of emails to whitelist, in addition to optionally also specifying whitelisted domain(s).
Describe alternatives you've considered
I haven't considered any alternatives whitelisting methods because Google is the only oAuth provider currently supported.
Additional context
This feature was already available in oauth2_proxy via the "authenticated-emails-file" command-line flag.