Enable super admin login via oauth

What is the preferred way for the super admin to login when using a generic Oauth user authentication mechanism. It would be preferable to disable the login form to avoid confusing users (GF_AUTH_DISABLE_LOGIN_FORM=true). Therefore, would it be possible to map the super admin (GF_SECURITY_ADMIN_USER) to an Oauth user so that the login form is not needed? Alternatively, is there another way that the super admin can log in without using the login form?

Local Grafana ccounts are linked to OAuth users by email address, if the email address set on the admin user matches an OAuth user’s email address they will be logged in to that account.

The alternative is to log in as the admin and grant admin privileges to your OAuth-linked account, then disable local logins.

This is the error that I run into when trying to set GF_SECURITY_ADMIN_USER to admin@example.com and then log into Grafana via Oauth with that account. The error is reproducible and is probably related to the UNIQUE constraint failed error when logging in with the user credentials that match the super admin. Do you have any idea for a work-around?

t=2018-03-11T08:35:23+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/login/generic_oauth status=302 remote_addr=172.17.0.1 time_ms=0 size=267 referer=http://localhost:3000/login
t=2018-03-11T08:35:43+0000 lvl=eror msg="Failed to create account" logger=context userId=0 orgId=0 uname= error="UNIQUE constraint failed: user.login"
t=2018-03-11T08:35:43+0000 lvl=eror msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/login/generic_oauth status=500 remote_addr=172.17.0.1 time_ms=5358 size=1126 referer="http://localhost:8001/oauth/authorize?access_type=online&client_id=ab12&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin%2Fgeneric_oauth&response_type=code&scope=email&state=VmZ3R9468gVhODuEikznqTQvox%2FJCxWehpru8m1QorM%3D"
t=2018-03-11T08:35:43+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/public/css/fonts.min.css status=404 remote_addr=172.17.0.1 time_ms=1 size=8772 referer="http://localhost:3000/login/generic_oauth?state=VmZ3R9468gVhODuEikznqTQvox%2FJCxWehpru8m1QorM%3D&code=RwLMknTPeV1XEa3ALhQ28udsUrMDDM"
t=2018-03-11T08:35:43+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/public/build/grafana.dark.min.css status=404 remote_addr=172.17.0.1 time_ms=1 size=8772 referer="http://localhost:3000/login/generic_oauth?state=VmZ3R9468gVhODuEikznqTQvox%2FJCxWehpru8m1QorM%3D&code=RwLMknTPeV1XEa3ALhQ28udsUrMDDM"
t=2018-03-11T08:35:43+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/favicon.ico status=404 remote_addr=172.17.0.1 time_ms=1 size=8772 referer=

At the moment I solved with the admin credentials login. Any news about the smart solution?