helpers for you to generate auth middlewares for an oauth2 server, working with oauth2orize module