merging instagram oauth2 middleware into oauth2_header and oauth2_query middlewares