MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / checkAuthorization

Method checkAuthorization

src/tsd/QueryRpc.java:846–854  ·  view source on GitHub ↗
(final TSDB tsdb, final Channel chan, final net.opentsdb.query.pojo.Query data_query)

Source from the content-addressed store, hash-verified

844 }
845
846 private void checkAuthorization(final TSDB tsdb, final Channel chan, final net.opentsdb.query.pojo.Query data_query) {
847 if (tsdb.getConfig().getBoolean("tsd.core.authentication.enable")) {
848 if (tsdb.getAuth().isReady(tsdb, chan)) {
849 final AuthState state = tsdb.getAuth().authorization().allowQuery(
850 (AuthState) chan.getAttachment(), data_query);
851 handleAuthorization(state);
852 }
853 }
854 }
855
856 private void checkAuthorization(final TSDB tsdb, final Channel chan, final TSQuery data_query) {
857 if (tsdb.getConfig().getBoolean("tsd.core.authentication.enable")) {

Callers 2

handleQueryMethod · 0.95
handleExpressionQueryMethod · 0.95

Calls 7

handleAuthorizationMethod · 0.95
getBooleanMethod · 0.80
getAuthMethod · 0.80
isReadyMethod · 0.65
allowQueryMethod · 0.65
authorizationMethod · 0.65
getConfigMethod · 0.45

Tested by

no test coverage detected