use of org.apache.shiro.authz.annotation.RequiresGuest in project graylog2-server by Graylog2.
the class AuthServiceBackendsResource method getActiveType.
@GET
@RequiresGuest
@Path("active-backend/type")
@ApiOperation("Returns type of currently active authentication service backend")
public Response getActiveType() {
String type = null;
final AuthServiceBackendDTO activeBackendConfig = globalAuthServiceConfig.getActiveBackendConfig().orElse(null);
if (activeBackendConfig != null) {
type = activeBackendConfig.config().type();
}
return toResponse(type);
}
Aggregations