Suppress deprecation warnings.
Redo authorization and add ExternalContext to handle these things