[example] Suppress some deprecation warnings in the middleware example
[example] Suppress a deprecation warning in the authorization example