Not working yet, keep in touch.
This module brings you simple way to set up oauth2 authentication using pure nginx.
These variables are mandatory to make module works.
oauth2_authorization_endpoint; // required
oauth2_response_type; // required
oauth2_client_id; // required
TBD